Last active
October 29, 2018 14:22
-
-
Save Samueldhardy/db0e0322ca18280716f9739ea8c038e1 to your computer and use it in GitHub Desktop.
config.yml
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
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