diff options
author | varac <varacanero@zeromail.org> | 2017-04-05 13:18:22 +0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-07-03 14:19:45 -0300 |
commit | 2dd7605d4711d57731447361864c6958657c67b7 (patch) | |
tree | f47bbcc673c67968d64216cea31f7a733ac1e812 /benchmark-all-commits.sh | |
parent | b2372217a1d6f40b64f2afbb734571ae14c0e27c (diff) |
[test] Break on error
Diffstat (limited to 'benchmark-all-commits.sh')
-rwxr-xr-x | benchmark-all-commits.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/benchmark-all-commits.sh b/benchmark-all-commits.sh index d368eff0..bed53cc0 100755 --- a/benchmark-all-commits.sh +++ b/benchmark-all-commits.sh @@ -12,6 +12,9 @@ # # - Error handling. This script is dump and will run forever. +set -e + + #rm -rf testing/.tox while /bin/true @@ -32,6 +35,7 @@ do # Option 2: Run couchdb + tox in docker container using gitlab-runner git checkout origin/benchmark-all-commits .gitlab-ci.yml gitlab-runner exec docker benchmark --env PYTEST_OPTS="$PYTEST_OPTS" --env HOST_HOSTNAME="$(hostname)" - + git reset HEAD .gitlab-ci.yml + git checkout .gitlab-ci.yml git checkout HEAD^ done |