Skip to content

Commit fea3a02

Browse files
committed
travis: run tests on Windows as well
1 parent 291aba7 commit fea3a02

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

.travis.yml

+30-11
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,53 @@
11
sudo: true
22
# need to declare the language as well as the matrix below
33
language: node_js
4+
5+
os:
6+
- linux
7+
8+
node_js:
9+
- 12
10+
- 10
11+
- 8
12+
13+
env: "DEPLOY_VERSION=testing"
14+
415
# having top-level `env:` adds a phantom build
516
# https://github.com/travis-ci/travis-ci/issues/4681
617
#env: DEPLOY_VERSION=testing
718
matrix:
819
include:
9-
# LTS is our most important target
20+
# Run the sudotest, but only on Linux
1021
- node_js: "12"
1122
# DEPLOY_VERSION is used to set the couchapp setup mode for test/tap/registry.js
1223
# only gather coverage info for LTS
1324
env: DEPLOY_VERSION=testing COVERALLS_REPO_TOKEN="$COVERALLS_OPTIONAL_TOKEN"
1425
script:
1526
# run the sudo tests, with coverage enabled
16-
- "sudo PATH=$PATH $(which node) . run tap -- \"test/tap/*.js\" --coverage"
17-
# previous LTS is next most important
27+
- "sudo PATH=$PATH $(which node) . run tap -- \"test/tap/*.js\" --coverage --timeout 600"
28+
29+
# also run standard and license checking
1830
- node_js: "10"
19-
env: DEPLOY_VERSION=testing
2031
script:
21-
- "npx standard"
22-
- "node . run licenses"
23-
- "node . run tap -- \"test/tap/*.js\""
24-
- node_js: "8"
25-
env: DEPLOY_VERSION=testing
32+
- "npx standard"
33+
- "node . run licenses"
34+
35+
# separate out node 6 so we can turn off caching, because that
36+
# always breaks for some reason.
2637
- node_js: "6"
27-
env: DEPLOY_VERSION=testing
2838
cache: false
39+
env: "DEPLOY_VERSION=testing"
40+
41+
# only run one test on Windows, because it's hella slow
42+
- node_js: "12"
43+
os: "windows"
44+
env: "DEPLOY_VERSION=testing"
45+
2946
notifications:
3047
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
48+
3149
install:
3250
- "node . install"
51+
3352
script:
34-
- "node . run tap -- \"test/tap/*.js\""
53+
- "node . run tap -- \"test/tap/*.js\" -t600 -Rclassic -c"

0 commit comments

Comments
 (0)