forked from jsx-eslint/eslint-plugin-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 765 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
sudo: false
language: node_js
node_js:
- '10'
- '9'
- '8'
- '7'
- '6'
- '5'
- '4'
before_install:
- 'nvm install-latest-npm'
before_script:
- 'if [ -n "${ESLINT-}" ]; then npm install --no-save "eslint@${ESLINT}" ; fi'
script:
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
- 'if [ -n "${TEST-}" ]; then npm run unit-test ; fi'
env:
global:
- TEST=true
matrix:
- ESLINT=5
- ESLINT=4
- ESLINT=3
after_success:
- 'if [ -n "${TEST-}" ]; then npm run coveralls ; fi'
matrix:
fast_finish: true
include:
- node_js: 'lts/*'
env: PRETEST=true
exclude:
- node_js: '5'
env: ESLINT=5
- node_js: '4'
env: ESLINT=5
allow_failures:
- node_js: '9'
- node_js: '7'
- node_js: '5'