summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-04-05 13:18:22 +0200
committerKali Kaneko <kali@leap.se>2017-07-07 21:25:05 +0200
commitdf9123a6f5abb4bb2d521d111b3a8045d25032f3 (patch)
tree56b9c5f18d69bb96e95b9d80968f6f78efe71939
parent97ca968e622796e5e783b6e4c410bee36df90803 (diff)
[benchmarks] Break on error
-rwxr-xr-xbenchmark-all-commits.sh6
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