Skip to content

Commit cb4d21e

Browse files
committed
Run tests against different ESLint versions on Travis
1 parent 677e1bd commit cb4d21e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ node_js:
99
- '4'
1010
before_install:
1111
- 'nvm install-latest-npm'
12+
before_script:
13+
- 'if [ -n "${ESLINT-}" ]; then npm install --no-save "eslint@${ESLINT}" ; fi'
1214
script:
1315
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
1416
- 'if [ -n "${TEST-}" ]; then npm run unit-test ; fi'
@@ -21,7 +23,28 @@ matrix:
2123
include:
2224
- node_js: 'lts/*'
2325
env: PRETEST=true
26+
- node_js: '9'
27+
env: TEST=true ESLINT=next
28+
- node_js: '8'
29+
env: TEST=true ESLINT=next
30+
- node_js: '7'
31+
env: TEST=true ESLINT=next
32+
- node_js: '6'
33+
env: TEST=true ESLINT=next
34+
- node_js: '9'
35+
env: TEST=true ESLINT=3
36+
- node_js: '8'
37+
env: TEST=true ESLINT=3
38+
- node_js: '7'
39+
env: TEST=true ESLINT=3
40+
- node_js: '6'
41+
env: TEST=true ESLINT=3
42+
- node_js: '5'
43+
env: TEST=true ESLINT=3
44+
- node_js: '4'
45+
env: TEST=true ESLINT=3
2446
allow_failures:
2547
- node_js: '9'
2648
- node_js: '7'
2749
- node_js: '5'
50+
- env: TEST=true ESLINT=next

0 commit comments

Comments
 (0)