diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-25 17:03:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-25 17:03:52 +0300 |
commit | 54276f37f8be6810d0c665dae2ce6be61dd50665 (patch) | |
tree | 55c8c86bd2ca50d66b27b6d7e20aa3ab2474f129 /gitlab-ci | |
parent | 0e01b00fecd3dd2f52e3463b291816ab2417518c (diff) | |
download | tools-54276f37f8be6810d0c665dae2ce6be61dd50665.tar.gz tools-54276f37f8be6810d0c665dae2ce6be61dd50665.tar.bz2 tools-54276f37f8be6810d0c665dae2ce6be61dd50665.tar.xz tools-54276f37f8be6810d0c665dae2ce6be61dd50665.zip |
gitlab-ci: fail client data builds if some thing bad detected.
Diffstat (limited to 'gitlab-ci')
-rwxr-xr-x | gitlab-ci/clientdata.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gitlab-ci/clientdata.sh b/gitlab-ci/clientdata.sh index 4b8dd37..9d1281b 100755 --- a/gitlab-ci/clientdata.sh +++ b/gitlab-ci/clientdata.sh @@ -33,14 +33,16 @@ if [[ -n "${RES}" ]]; then echo "xml check failed" echo "xml check failed" >../../clientdata/shared/error.log echo ${RES} >>../../clientdata/shared/error.log - exit 0 + cat ../../clientdata/shared/error.log + exit 1 fi echo >../../clientdata/shared/error.log ./testxml.py silent >../../clientdata/shared/error.log if [ "$?" != 0 ]; then echo "test xml error" - exit 0 + cat ../../clientdata/shared/error.log + exit 1 fi echo >../../clientdata/shared/error.log |