summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-07-08 09:16:02 -0300
committerdrebs <drebs@leap.se>2017-07-08 09:16:02 -0300
commitedae639f6cf648dd814407c698becf46dc1eff3d (patch)
tree37597c38418d9dbd216cf35cd85e7d9ed75d1d40
parent3b51520b4be2f48a204bc0d630c88058ed51afa9 (diff)
[benchmarks] properly pass environment variable to gitlab-runner
-rwxr-xr-xscripts/benchmark/benchmark-all-commits.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/benchmark/benchmark-all-commits.sh b/scripts/benchmark/benchmark-all-commits.sh
index 57b2adc2..132f03c6 100755
--- a/scripts/benchmark/benchmark-all-commits.sh
+++ b/scripts/benchmark/benchmark-all-commits.sh
@@ -46,11 +46,12 @@ do
# Option 2: Run couchdb + tox in docker container using gitlab-runner
git checkout origin/master .gitlab-ci.yml
- BENCHMARK_ALL_COMMITS=1 time gitlab-runner exec docker \
+ time gitlab-runner exec docker \
benchmark \
--timeout 7200 \
--env PYTEST_OPTS="$PYTEST_OPTS" \
- --env HOST_HOSTNAME="$(hostname)"
+ --env HOST_HOSTNAME="$(hostname)" \
+ --env BENCHMARK_ALL_COMMITS=1
code=$?
echo "$(date -Iseconds) ${commit_id} ${code}" >> results.txt