Skip to content

Instantly share code, notes, and snippets.

@steerpike
Created December 19, 2019 00:37
Show Gist options
  • Save steerpike/de651c1f7eaf033383d3fb815ee3aaa7 to your computer and use it in GitHub Desktop.
Save steerpike/de651c1f7eaf033383d3fb815ee3aaa7 to your computer and use it in GitHub Desktop.
Run Cypress after extracting ENV variables on a server to determine a dynamic URL
CYPRESS_baseUrl="https://$LOGNAME-op.$(grep wildcard_cname /etc/salt/grains | cut -d ' ' -f 2)" ./node_modules/.bin/cypress run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment