summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLachlan Mackenzie <lachlan.mackenzie@codethink.co.uk>2018-10-31 19:39:51 +0000
committerLachlan Mackenzie <lachlan.mackenzie@codethink.co.uk>2018-11-02 19:09:44 +0000
commita81986bb7b0f8d7f7a6b955b47a2003092f938d6 (patch)
tree21092951cd10cc96f29ab6541f01c6ef0c8005a3
parentc7ac7e7d70e9a0a266c935505696c23f8c23f244 (diff)
downloadbuildstream-lachlanmackenzie/trigger-benchmark-tests.tar.gz
Add trigger for benchmarkinglachlanmackenzie/trigger-benchmark-tests
-rw-r--r--.gitlab-ci.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 02a803de4..74299d24e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ stages:
- prepare
- test
- post
+ - benchmark
#####################################################
# Prepare stage #
@@ -298,3 +299,22 @@ pages:
- master
except:
- schedules
+
+# Trigger benchmarking
+# https://gitlab.com/BuildStream/benchmarks
+# The "token" is a trigger token provided by the gitlab ui.
+# The "ref" represents the target benchmarking branch (master).
+# The "variable[BUILDSTREAM_COMMIT_SHA]" allows the Buildstream
+# sha commit that triggers the benchmarking build to be shared
+# with the benchmark build (future use).
+
+trigger_benchmark:
+ stage: benchmark
+ dependencies:
+ - pages
+ script:
+ - "curl request POST --form token=7cf84951174c387bc23d0afbb1acad --form ref=master --form variables[BUILDSTREAM_COMMIT_SHA]=$CI_COMMIT_SHA https://gitlab.com/api/v4/projects/BuildStream%2Fbenchmarks/trigger/pipeline"
+ only:
+ refs:
+ - master
+ allow_failure: true