Skip to content

Commit 2fe437a

Browse files
committed
ci: nicer matrix
1 parent cb72df7 commit 2fe437a

File tree

1 file changed

+40
-15
lines changed

1 file changed

+40
-15
lines changed

.travis.yml

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,47 @@
1+
os: linux
2+
dist: bionic
13
language: node_js
2-
node_js:
3-
- 'stable'
4-
- '10'
5-
- '9'
6-
- '8'
7-
- '6'
8-
- '4'
9-
- '0.12'
10-
- '0.10'
11-
script:
12-
- 'npm test'
13-
# Run browser tests on one node version.
14-
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ]; then npm run test:browsers; fi'
15-
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ]; then npm run test:browsers:with-polyfills; fi'
16-
addons:
4+
5+
.addons: &AIRTAP
176
sauce_connect: true
187
hosts:
198
- airtap.local
9+
10+
jobs:
11+
include:
12+
- name: Run tests on stable Node.js
13+
node_js: stable
14+
script: npm test
15+
- name: Run tests on Node.js 12
16+
node_js: 12
17+
script: npm test
18+
- name: Run tests on Node.js 10
19+
node_js: 10
20+
script: npm test
21+
- name: Run tests on Node.js 8
22+
node_js: 8
23+
script: npm test
24+
- name: Run tests on Node.js 6
25+
node_js: 6
26+
script: npm test
27+
- name: Run tests on Node.js 4
28+
node_js: 4
29+
script: npm test
30+
- name: Run tests on Node.js 0.12
31+
node_js: '0.12'
32+
script: npm test
33+
- name: Run tests on Node.js 0.10
34+
node_js: '0.10'
35+
script: npm test
36+
- name: Run browser tests
37+
node_js: lts/*
38+
script: npm run test:browsers
39+
addons: *AIRTAP
40+
- name: Run browser tests with polyfilled environment
41+
node_js: lts/*
42+
script: npm run test:browsers:with-polyfills
43+
addons: *AIRTAP
44+
2045
env:
2146
global:
2247
- secure: AdUubswCR68/eGD+WWjwTHgFbelwQGnNo81j1IOaUxKw+zgFPzSnFEEtDw7z98pWgg7p9DpCnyzzSnSllP40wq6AG19OwyUJjSLoZK57fp+r8zwTQwWiSqUgMu2YSMmKJPIO/aoSGpRQXT+L1nRrHoUJXgFodyIZgz40qzJeZjc=

0 commit comments

Comments
 (0)