summaryrefslogtreecommitdiff
path: root/benchmark-all-commits.sh
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-04-06 11:28:38 +0200
committerKali Kaneko <kali@leap.se>2017-07-07 21:25:06 +0200
commit1f8e7fdf24cd917884ff10b613da81c267c7e5aa (patch)
tree08781fb5cf0fab904f5f2426dc79913ea035bcd7 /benchmark-all-commits.sh
parentdf9123a6f5abb4bb2d521d111b3a8045d25032f3 (diff)
[benchmarks] Show date and commit info
Diffstat (limited to 'benchmark-all-commits.sh')
-rwxr-xr-xbenchmark-all-commits.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/benchmark-all-commits.sh b/benchmark-all-commits.sh
index bed53cc0..cde4f9af 100755
--- a/benchmark-all-commits.sh
+++ b/benchmark-all-commits.sh
@@ -19,9 +19,13 @@ set -e
while /bin/true
do
- echo -e '\n\n\n\n\n'
-
+ commit_id=$(git rev-parse HEAD)
+ echo -e '\n\n\n\n\n'
+ echo -e "\e[34m$(date): Starting benchmarking of commit ${commit_id:0:8}, which is $(git rev-list --count ${commit_id}..origin/master) commits back from master:\e[0m"
+ echo
+ git show | head -6
+ echo
# Option 1: Run couchdb + tox localy - dirty!
# curl -s localhost:5984 || exit 1
@@ -34,7 +38,13 @@ 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)"
+ time gitlab-runner exec docker benchmark --env PYTEST_OPTS="$PYTEST_OPTS" --env HOST_HOSTNAME="$(hostname)"
+ echo
+ echo -e "\e[34m$(date): Finished benchmarking of commit ${commit_id:0:8}, which is $(git rev-list --count ${commit_id}..origin/master) commits back from master:\e[0m"
+ echo
+ git show | head -6
+ echo
+
git reset HEAD .gitlab-ci.yml
git checkout .gitlab-ci.yml
git checkout HEAD^