File tree Expand file tree Collapse file tree 10 files changed +510
-173
lines changed
Expand file tree Collapse file tree 10 files changed +510
-173
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ node_js:
44 # Node 10.3+ includes npm@6 which has good "npm ci" command
55 - 10.8
66
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+
714cache :
815 # cache both npm modules and Cypress binary
916 directories :
@@ -17,7 +24,7 @@ defaults: &defaults
1724 script :
1825 # ## print all Travis environment variables for debugging
1926 - $(npm bin)/print-env TRAVIS
20- - npm start -- --silent &
27+ - npm run start:ci &
2128 - npm run cy:run -- --record --parallel --group $STAGE_NAME
2229 # after all tests finish running we need
2330 # to kill all background jobs (like "npm start &")
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ pipeline {
5858 steps {
5959 // start local server in the background
6060 // we will shut it down in "post" command block
61- sh ' nohup npm start &'
61+ sh ' nohup npm run start:ci &'
6262 }
6363 }
6464
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ test_script:
3131 # with new version
3232 - run-if npm run cy:version
3333 - run-if npm run cy:verify
34- - run-if npm run test:ci:record
34+ - run-if npm run test:ci:record:windows
3535
3636# Don't actually build.
3737build : off
Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ node_js:
44 # Node 10.3+ includes npm@6 which has good "npm ci" command
55 - 10.8
66
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+
714cache :
815 # cache both npm modules and Cypress binary
916 directories :
1623
1724script :
1825 # start server in the background
19- - npm start -- --silent &
26+ - npm run start:ci &
2027 # run all Cypress tests and record on the dashboard
2128 - npm run cy:run -- --record
2229 # after all tests finish running we need
Original file line number Diff line number Diff line change 2323 - ~/.cache
2424 # start server before starting tests
2525 - run :
26- command : npm start
26+ command : npm run start:ci
2727 background : true
2828 - run : npm run e2e:record
2929
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ workflows:
3232 name : Mac test
3333 executor : mac
3434 build : ' npm run build'
35- start : ' npm start'
35+ start : ' npm run start:ci '
3636 record : true
3737 group : ' Mac build'
3838
@@ -58,7 +58,7 @@ workflows:
5858 parallel : true # load balance all tests
5959 parallelism : 3 # across 3 machines
6060 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
6262
6363 # run on 2 machines using Chrome browser
6464 - cypress/run :
@@ -75,7 +75,7 @@ workflows:
7575 parallel : true
7676 parallelism : 2
7777 group : ' 2x-chrome'
78- start : ' npm start'
78+ start : ' npm run start:ci '
7979
8080 - release :
8181 filters :
You can’t perform that action at this time.
0 commit comments