Skip to content

Instantly share code, notes, and snippets.

@Samueldhardy
Last active October 29, 2018 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Samueldhardy/db0e0322ca18280716f9739ea8c038e1 to your computer and use it in GitHub Desktop.
Save Samueldhardy/db0e0322ca18280716f9739ea8c038e1 to your computer and use it in GitHub Desktop.
config.yml
integration_tests:
<<: *defaults
docker:
## docker image file for cypress
- image: cypress/base:8
environment:
## this enables colors in the output
TERM: xterm
steps:
- attach_workspace:
at: ~/
## build the project
- run: npm run build
## run the localhost server
- run:
name: Starting server
command: |
npm start
background: true
- run: sleep 5
## set up our localhost to point at integration.gql-dev.com
## run cypress
- run:
name: Running integration tests
command: |
echo 127.0.0.1 integration.gql-dev.com | tee -a /etc/hosts
npm run cypress:run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment