File tree 10 files changed +510
-173
lines changed
10 files changed +510
-173
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ node_js:
4
4
# Node 10.3+ includes npm@6 which has good "npm ci" command
5
5
- 10.8
6
6
7
+ # if using Ubuntu 16 need this library
8
+ # https://github.com/cypress-io/cypress-documentation/pull/1647
9
+ addons :
10
+ apt :
11
+ packages :
12
+ - libgconf-2-4
13
+
7
14
cache :
8
15
# cache both npm modules and Cypress binary
9
16
directories :
@@ -17,7 +24,7 @@ defaults: &defaults
17
24
script :
18
25
# ## print all Travis environment variables for debugging
19
26
- $(npm bin)/print-env TRAVIS
20
- - npm start -- --silent &
27
+ - npm run start:ci &
21
28
- npm run cy:run -- --record --parallel --group $STAGE_NAME
22
29
# after all tests finish running we need
23
30
# to kill all background jobs (like "npm start &")
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ pipeline {
58
58
steps {
59
59
// start local server in the background
60
60
// we will shut it down in "post" command block
61
- sh ' nohup npm start &'
61
+ sh ' nohup npm run start:ci &'
62
62
}
63
63
}
64
64
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ test_script:
31
31
# with new version
32
32
- run-if npm run cy:version
33
33
- run-if npm run cy:verify
34
- - run-if npm run test:ci:record
34
+ - run-if npm run test:ci:record:windows
35
35
36
36
# Don't actually build.
37
37
build : off
Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ node_js:
4
4
# Node 10.3+ includes npm@6 which has good "npm ci" command
5
5
- 10.8
6
6
7
+ # if using Ubuntu 16 need this library
8
+ # https://github.com/cypress-io/cypress-documentation/pull/1647
9
+ addons :
10
+ apt :
11
+ packages :
12
+ - libgconf-2-4
13
+
7
14
cache :
8
15
# cache both npm modules and Cypress binary
9
16
directories :
16
23
17
24
script :
18
25
# start server in the background
19
- - npm start -- --silent &
26
+ - npm run start:ci &
20
27
# run all Cypress tests and record on the dashboard
21
28
- npm run cy:run -- --record
22
29
# after all tests finish running we need
Original file line number Diff line number Diff line change 23
23
- ~/.cache
24
24
# start server before starting tests
25
25
- run :
26
- command : npm start
26
+ command : npm run start:ci
27
27
background : true
28
28
- run : npm run e2e:record
29
29
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ workflows:
32
32
name : Mac test
33
33
executor : mac
34
34
build : ' npm run build'
35
- start : ' npm start'
35
+ start : ' npm run start:ci '
36
36
record : true
37
37
group : ' Mac build'
38
38
@@ -58,7 +58,7 @@ workflows:
58
58
parallel : true # load balance all tests
59
59
parallelism : 3 # across 3 machines
60
60
group : ' 3x-electron' # name this group
61
- start : ' npm start' # start server before running tests
61
+ start : ' npm run start:ci ' # start server before running tests
62
62
63
63
# run on 2 machines using Chrome browser
64
64
- cypress/run :
@@ -75,7 +75,7 @@ workflows:
75
75
parallel : true
76
76
parallelism : 2
77
77
group : ' 2x-chrome'
78
- start : ' npm start'
78
+ start : ' npm run start:ci '
79
79
80
80
- release :
81
81
filters :
You can’t perform that action at this time.
0 commit comments