Commit ac284fc0 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[.gitlab-ci.yml] ldhi: use gitlab variables

parent 5f35e19671d6
Pipeline #69850 passed with stages
in 4 minutes and 28 seconds
......@@ -18,10 +18,9 @@ lhci:
stage: test-performances
script:
- npm install -g @lhci/cli@0.8.x
- export LHCI_BUILD_CONTEXT__CURRENT_HASH=$(node -e "new Date().getTime().toString(16).split('').reverse().join('')")
- export LHCI_BUILD_CONTEXT__COMMIT_TIME=$(date --iso-8601=seconds)
- export LHCI_BUILD_CONTEXT__CURRENT_BRANCH=master
- export LHCI_BUILD_CONTEXT__COMMIT_MESSAGE="Periodic run "
- export LHCI_BUILD_CONTEXT__AUTHOR="No one <noreply@example.com>"
- export LHCI_BUILD_CONTEXT__AVATAR_URL="https://picsum.photos/id/237/200/200"
- export LHCI_BUILD_CONTEXT__CURRENT_HASH=$CI_COMMIT_HG_SHORT_SHA
- export LHCI_BUILD_CONTEXT__COMMIT_TIME=$CI_COMMIT_TIMESTAMP
- export LHCI_BUILD_CONTEXT__CURRENT_BRANCH=$CI_COMMIT_REF_NAME
- export LHCI_BUILD_CONTEXT__COMMIT_MESSAGE=$CI_COMMIT_MESSAGE
- export LHCI_BUILD_CONTEXT__AUTHOR=$GITLAB_USER_NAME
- lhci autorun --collect.settings.chromeFlags="--no-sandbox" || echo "LHCI failed!"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment