|
1 | 1 | sudo: true |
2 | 2 | # need to declare the language as well as the matrix below |
3 | 3 | 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 | + |
4 | 15 | # having top-level `env:` adds a phantom build |
5 | 16 | # https://github.com/travis-ci/travis-ci/issues/4681 |
6 | 17 | #env: DEPLOY_VERSION=testing |
7 | 18 | matrix: |
8 | 19 | include: |
9 | | - # LTS is our most important target |
| 20 | + # Run the sudotest, but only on Linux |
10 | 21 | - node_js: "12" |
11 | 22 | # DEPLOY_VERSION is used to set the couchapp setup mode for test/tap/registry.js |
12 | 23 | # only gather coverage info for LTS |
13 | 24 | env: DEPLOY_VERSION=testing COVERALLS_REPO_TOKEN="$COVERALLS_OPTIONAL_TOKEN" |
14 | 25 | script: |
15 | 26 | # 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 |
18 | 30 | - node_js: "10" |
19 | | - env: DEPLOY_VERSION=testing |
20 | 31 | 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. |
26 | 37 | - node_js: "6" |
27 | | - env: DEPLOY_VERSION=testing |
28 | 38 | 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 | + |
29 | 46 | notifications: |
30 | 47 | slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8 |
| 48 | + |
31 | 49 | install: |
32 | 50 | - "node . install" |
| 51 | + |
33 | 52 | script: |
34 | | - - "node . run tap -- \"test/tap/*.js\"" |
| 53 | + - "node . run tap -- \"test/tap/*.js\" -t600 -Rclassic -c" |
0 commit comments