Update AutoDevOps template for latest Browser Performance Testing changes
This commit is contained in:
parent
dbb934c8e2
commit
794506a2c5
1 changed files with 4 additions and 3 deletions
|
@ -103,6 +103,7 @@ performance:
|
|||
artifacts:
|
||||
paths:
|
||||
- performance.json
|
||||
- sitespeed-results/
|
||||
only:
|
||||
refs:
|
||||
- branches
|
||||
|
@ -503,16 +504,16 @@ production:
|
|||
export CI_ENVIRONMENT_URL=$(cat environment_url.txt)
|
||||
|
||||
mkdir gitlab-exporter
|
||||
wget -O gitlab-exporter/index.js https://gitlab.com/gitlab-org/gl-performance/raw/10-3/index.js
|
||||
wget -O gitlab-exporter/index.js https://gitlab.com/gitlab-org/gl-performance/raw/10-5/index.js
|
||||
|
||||
mkdir sitespeed-results
|
||||
|
||||
if [ -f .gitlab-urls.txt ]
|
||||
then
|
||||
sed -i -e 's@^@'"$CI_ENVIRONMENT_URL"'@' .gitlab-urls.txt
|
||||
docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:6.0.3 --plugins.add ./gitlab-exporter --outputFolder sitespeed-results .gitlab-urls.txt
|
||||
docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:6.3.1 --plugins.add ./gitlab-exporter --outputFolder sitespeed-results .gitlab-urls.txt
|
||||
else
|
||||
docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:6.0.3 --plugins.add ./gitlab-exporter --outputFolder sitespeed-results "$CI_ENVIRONMENT_URL"
|
||||
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"
|
||||
fi
|
||||
|
||||
mv sitespeed-results/data/performance.json performance.json
|
||||
|
|
Loading…
Reference in a new issue