Created
August 2, 2020 03:03
-
-
Save alfredlucero/dea368acabdff87912cb4cab2161d035 to your computer and use it in GitHub Desktop.
Cypress Tips/Tricks - Buildkite Trigger Cypress from Bash Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is triggered from our runCypress.sh script from the main pipeline.yml's Cypress select and trigger steps | |
steps: | |
- trigger: 'cypress-trigger' # We have a separate pipeline called cypress-trigger to run our Cypress tests | |
label: ':cypress: Triggered $CYPRESS_SPECS specs against the $CYPRESS_TEST_ENV environment :cypress:' | |
async: '$ASYNC' | |
build: | |
commit: '$BUILDKITE_COMMIT' | |
message: '$BUILDKITE_MESSAGE' | |
branch: '$BUILDKITE_BRANCH' | |
# Refer to environment variables exported from runCypress.sh for where these are coming from when we call this trigger step | |
env: | |
CYPRESS_TEST_ENV: '$CYPRESS_TEST_ENV' | |
CYPRESS_SPECS: '$CYPRESS_SPECS' | |
ASYNC: '$ASYNC' | |
PARALLELISM: '$PARALLELISM' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment