Created
December 3, 2017 16:21
-
-
Save Crash--/cdc04576262d3310b85869af6eee970d to your computer and use it in GitHub Desktop.
Config CI for Cypress et ReactJS
This file contains hidden or 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
version: 2 | |
jobs: | |
build: | |
docker: | |
# the Docker image with Cypress dependencies | |
- image: cypress/base:8 | |
environment: | |
## this enables colors in the output | |
TERM: xterm | |
working_directory: ~/build | |
parallelism: 1 | |
steps: | |
- checkout | |
- restore_cache: | |
keys: | |
- v1-npm-deps-{{ checksum "package.json" }} | |
- v1-npm-deps | |
- run: npm install | |
- save_cache: | |
key: v1-npm-deps-{{ checksum "package.json" }} | |
paths: | |
- node_modules | |
- run: | |
name: Running E2E tests with multiple reporters | |
command: npm run build-web; ./node_modules/serve/bin/serve.js -s build/ & ./node_modules/wait-on/bin/wait-on http://localhost:5000 && ./node_modules/cypress/bin/cypress run | |
- store_artifacts: | |
path: cypress/videos | |
- store_artifacts: | |
path: cypress/screenshots |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment