From: TimePath Date: Mon, 4 Jan 2016 05:22:23 +0000 (+1100) Subject: gitlab-ci: fail if any test fails X-Git-Tag: xonotic-v0.8.2~1291 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=758afd54a3cebf82e30033b8f32ccc00e2249aa6;p=xonotic%2Fxonotic-data.pk3dir.git gitlab-ci: fail if any test fails --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b292b7bb..7de5568c1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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