aboutsummaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2021-08-19 15:56:32 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2021-08-19 15:56:32 +0200
commit37753dbe0b095a6ee30f5606ba45fe0d9aa84928 (patch)
treeb0c76c8d02d57a3a2c12e0720fb271ba52a8fc23 /build.bat
parent7b3f1be112144438309b85cbde267adfc86c5fed (diff)
only run test in ci
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat13
1 files changed, 3 insertions, 10 deletions
diff --git a/build.bat b/build.bat
index f887352..4bd2784 100644
--- a/build.bat
+++ b/build.bat
@@ -3,17 +3,10 @@
if "%1" == "CI" (
set ODIN="Odin/odin"
+ %ODIN% test tests -collection:shared=src -debug -opt:0
+ if %errorlevel% neq 0 if "%x1" == "CI" exit 1
) else (
set ODIN="odin"
)
-%ODIN% test tests -collection:shared=src
-
-if %errorlevel% neq 0 goto end_of_build
-
-%ODIN% build src\ -show-timings -microarch:native -collection:shared=src -out:ols -opt:2
-rem %ODIN% build src\ -show-timings -microarch:native -collection:shared=src -out:ols -opt:0 -debug
-
-
-
-:end_of_build
+%ODIN% build src\ -show-timings -microarch:native -collection:shared=src -out:ols -opt:2 \ No newline at end of file