forked from cypress-io/cypress-example-kitchensink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
51 lines (47 loc) · 1.8 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# testing using CircleCI orb
# see https://on.cypress.io/circleci-orb
# for non-orb configuration see old commit
# https://github.com/cypress-io/cypress-example-kitchensink/blob/aabb10cc1bb9dee88e1bf28e0af5e9661427ee7a/circle.yml
# to use CircleCI orbs need to use version >= 2.1
version: 2.1
orbs:
# use Cypress orb from CircleCI registry
cypress: cypress-io/cypress@1.0.1
workflows:
build:
jobs:
# checks out code and installs dependencies once
- cypress/install:
# and builds the app using this command
build: 'npm run build'
# runs on 3 machines, load balances tests
# and records on Cypress Dashboard
- cypress/run:
# name this job because we are running "cypress/run" several times
# with different parameters
name: '3 machines'
# job will use workspace with code and dependencies
# installed by the "install" job
requires:
- cypress/install
record: true # record results on Cypress dashboard
parallel: true # load balance all tests
parallelism: 3 # across 3 machines
group: '3x-electron' # name this group
start: 'npm start' # start server before running tests
# run on 2 machines using Chrome browser
- cypress/run:
name: '2 machines using Chrome'
# job will use workspace with code and dependencies
# installed by the "install" job
requires:
- cypress/install
# use executor with Chrome installed
executor: cypress/browsers-chrome69
# use browser "chrome" for running tests
browser: chrome
record: true
parallel: true
parallelism: 2
group: '2x-chrome'
start: 'npm start'