summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorRamya Authappan <rauthappan@gitlab.com>2019-02-28 10:14:19 +0000
committerRémy Coutable <remy@rymai.me>2019-02-28 10:14:19 +0000
commit68cafb38ee84eb208f8bedb8bce9007b573a71fe (patch)
tree8558b98fe7a1aa5a414d8bfa78379abb367d62fb /.gitlab-ci.yml
parent8bc3c69e03d0c8581ace2cf9610a5a3833a3eac5 (diff)
downloadgitlab-ce-68cafb38ee84eb208f8bedb8bce9007b573a71fe.tar.gz
Enabling performance metrics on Review Apps
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0afd59ab007..2329c9c6edc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1045,6 +1045,20 @@ review-qa-all:
- gitlab-qa Test::Instance::Any "${QA_IMAGE}" "${CI_ENVIRONMENT_URL}"
when: manual
+review-performance:
+ <<: *review-qa-base
+ script:
+ - mkdir gitlab-exporter
+ - wget -O ./gitlab-exporter/index.js https://gitlab.com/gitlab-org/gl-performance/raw/master/index.js
+ - mkdir sitespeed-results
+ - docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:6.3.1 --plugins.add ./gitlab-exporter --outputFolder sitespeed-results "$CI_ENVIRONMENT_URL"
+ - mv sitespeed-results/data/performance.json performance.json
+ artifacts:
+ paths:
+ - sitespeed-results/
+ reports:
+ performance: performance.json
+
review-stop:
<<: *review-base
<<: *single-script-job