1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Skip running e2e tests when commit is tagged with '[skip e2e]' (#9486)

[skip e2e]
This commit is contained in:
Whymarrh Whitby 2020-10-07 15:12:52 -02:30 committed by GitHub
parent 17f7ca2cfe
commit baa2350604
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 2 deletions

View File

@ -229,7 +229,11 @@ jobs:
command: mv ./dist-test ./dist
- run:
name: test:e2e:chrome
command: yarn test:e2e:chrome
command: |
if .circleci/scripts/test-run-e2e
then
yarn test:e2e:chrome
fi
no_output_timeout: 20m
- store_artifacts:
path: test-artifacts
@ -250,7 +254,11 @@ jobs:
command: mv ./dist-test ./dist
- run:
name: test:e2e:firefox
command: yarn test:e2e:firefox
command: |
if .circleci/scripts/test-run-e2e
then
yarn test:e2e:firefox
fi
no_output_timeout: 20m
- store_artifacts:
path: test-artifacts

14
.circleci/scripts/test-run-e2e Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
# Skip running e2e tests if the HEAD commit is tagged correctly
if git show --format='%B' --no-patch "$CIRCLE_SHA1" | grep --fixed-strings --quiet '[skip e2e]'
then
printf '%s\n' "$CIRCLE_SHA1 contains the tag '[skip e2e]' so e2e tests will not run"
exit 1
fi
exit 0