]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
gitlab-ci: fail if any test fails
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 4 Jan 2016 05:22:23 +0000 (16:22 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 4 Jan 2016 06:40:00 +0000 (17:40 +1100)
.gitlab-ci.yml

index 8b292b7bb15d4eea8b6119b711207e4e3f6761aa..7de5568c1ff2c9d9c0f957ffd00eb88a8bf85b3b 100644 (file)
@@ -15,4 +15,8 @@ before_script:
 build:
   script:
     - make
-    - ${ENGINE} +map gitlab-ci +sv_cmd runtest +exit
+    - while read line; do
+        echo $line;
+        if [[ $line == "All tests OK" ]]; then exit 0; fi;
+      done < <(${ENGINE} +map gitlab-ci +sv_cmd runtest +exit)
+    - exit 1