Skip to content

Instantly share code, notes, and snippets.

@alfredlucero
Created August 2, 2020 03:03
Show Gist options
  • Save alfredlucero/dea368acabdff87912cb4cab2161d035 to your computer and use it in GitHub Desktop.
Save alfredlucero/dea368acabdff87912cb4cab2161d035 to your computer and use it in GitHub Desktop.
Cypress Tips/Tricks - Buildkite Trigger Cypress from Bash Script
# 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