-
Notifications
You must be signed in to change notification settings - Fork 17
/
circle.yml
32 lines (32 loc) · 947 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# https://docs.cypress.io/guides/guides/continuous-integration.html#CircleCI
version: 2
jobs:
build:
docker:
- image: cypress/base:10
environment:
## this enables colors in the output
TERM: xterm
working_directory: ~/app
steps:
- checkout
- restore_cache:
key: v1-app
- run: yarn install
- save_cache:
key: v1-app
paths:
# since we use Yarn it caches NPM modules in ~/.cache
# and Cypress caches its binary there!
# to confirm:
# yarn cache dir
# npx print-cachedir Cypress
- ~/.cache
- run: yarn build
# run e2e tests with video recorded by Cypress
- run: yarn e2e:video
# store videos and screenshots (if any) as CI artifacts
- store_artifacts:
path: cypress/videos
- store_artifacts:
path: cypress/screenshots