Lachlan pushed to branch lachlanmackenzie/trigger-benchmark-tests at BuildStream / buildstream
Commits:
-
a81986bb
by Lachlan Mackenzie at 2018-11-02T19:09:44Z
1 changed file:
Changes:
... | ... | @@ -9,6 +9,7 @@ stages: |
9 | 9 |
- prepare
|
10 | 10 |
- test
|
11 | 11 |
- post
|
12 |
+ - benchmark
|
|
12 | 13 |
|
13 | 14 |
#####################################################
|
14 | 15 |
# Prepare stage #
|
... | ... | @@ -298,3 +299,22 @@ pages: |
298 | 299 |
- master
|
299 | 300 |
except:
|
300 | 301 |
- schedules
|
302 |
+ |
|
303 |
+# Trigger benchmarking
|
|
304 |
+# https://gitlab.com/BuildStream/benchmarks
|
|
305 |
+# The "token" is a trigger token provided by the gitlab ui.
|
|
306 |
+# The "ref" represents the target benchmarking branch (master).
|
|
307 |
+# The "variable[BUILDSTREAM_COMMIT_SHA]" allows the Buildstream
|
|
308 |
+# sha commit that triggers the benchmarking build to be shared
|
|
309 |
+# with the benchmark build (future use).
|
|
310 |
+ |
|
311 |
+trigger_benchmark:
|
|
312 |
+ stage: benchmark
|
|
313 |
+ dependencies:
|
|
314 |
+ - pages
|
|
315 |
+ script:
|
|
316 |
+ - "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"
|
|
317 |
+ only:
|
|
318 |
+ refs:
|
|
319 |
+ - master
|
|
320 |
+ allow_failure: true
|