Skip to content

Commit aaca096

Browse files
authored
fix: replace http-server with serve (#242)
* fix: replace http-server with serve * chore: add serve.json file with settings * do not try to copy url on CI * call start:ci on Circle * use test:ci on other CIs * use PORT to listen if specified * separate Windows CI command * add libgconf 2 for Ubuntu 16 on Travis
1 parent 3aa8d4d commit aaca096

10 files changed

+510
-173
lines changed

.travis.yml

+8-1
Original file line numberDiff line numberDiff 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+
714
cache:
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 &")

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff 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

appveyor.yml

+1-1
Original file line numberDiff line numberDiff 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.
3737
build: off

basic/.travis.yml

+8-1
Original file line numberDiff line numberDiff 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+
714
cache:
815
# cache both npm modules and Cypress binary
916
directories:
@@ -16,7 +23,7 @@ cache:
1623

1724
script:
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

basic/circle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
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

circle.yml

+3-3
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)