-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.yml
67 lines (62 loc) · 2.1 KB
/
config.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: 2.1
orbs:
node: circleci/node@1.1.6
cypress: cypress-io/cypress@1.26.0
jobs:
build-and-test:
executor:
name: node/default
steps:
- checkout
- node/with-cache:
steps:
- run: yarn install
- run: yarn lint
- run: ./run-tests.sh
workflows:
build-and-test:
jobs:
- build-and-test
cypress:
jobs:
- cypress/install:
yarn: true
- cypress/run:
name: cypress-download-all
requires:
- cypress/install
yarn: true
start: yarn dev
command-prefix: 'HAPPO_PROJECT=download-all HAPPO_DOWNLOAD_ALL=true node bin/happo-cypress.js -- yarn'
- cypress/run:
name: cypress-allow-failures
requires:
- cypress/install
yarn: true
start: yarn dev
command-prefix: 'CYPRESS_INTRODUCE_FAILING_ASSERTION=true HAPPO_PROJECT=allow-failures node bin/happo-cypress.js --allow-failures -- yarn'
- cypress/run:
name: cypress-parallel
requires:
- cypress/install
yarn: true
start: yarn dev
parallel: true
parallelism: 2
record: true
command-prefix: 'HAPPO_PROJECT=parallel HAPPO_NONCE=${CIRCLE_WORKFLOW_ID} node bin/happo-cypress.js -- yarn'
post-steps:
- run: 'HAPPO_PROJECT=parallel HAPPO_NONCE=${CIRCLE_WORKFLOW_ID} node bin/happo-cypress.js finalize'
- cypress/run:
name: cypress-parallel-allow-failures
requires:
- cypress/install
yarn: true
start: yarn dev
parallel: true
parallelism: 2
record: true
ci-build-id: 'parallel-allow-failures-${CIRCLE_SHA1}'
command-prefix: 'CYPRESS_INTRODUCE_FAILING_ASSERTION=true HAPPO_PROJECT=parallel-allow-failures HAPPO_NONCE=B_${CIRCLE_WORKFLOW_ID} node bin/happo-cypress.js --allow-failures -- yarn'
post-steps:
- run: 'HAPPO_PROJECT=parallel-allow-failures HAPPO_NONCE=B_${CIRCLE_WORKFLOW_ID} node bin/happo-cypress.js finalize'