Skip to content

Commit 04e0cf7

Browse files
committed
Chore: update travis.yml
1 parent 4f4e216 commit 04e0cf7

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.travis.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
sudo: false
2+
23
language: node_js
34
node_js:
45
- "4"
56
- "6"
67
- "8"
8+
9+
env:
10+
- ESLINT_VERSION=3
11+
- ESLINT_VERSION=4
12+
13+
cache:
14+
directories:
15+
- node_modules
16+
717
before_script:
8-
- npm install async
18+
- npm i --no-save async
19+
- npm i --no-save eslint@$ESLINT_VERSION; true
20+
21+
script:
22+
- if [ $ESLINT_VERSION = 3 ]; then nyc npm run -s test:_mocha; else npm t; fi
23+
924
after_success:
1025
- npm run codecov

0 commit comments

Comments
 (0)