Skip to content

Commit 46d2444

Browse files
committed
Chore: Improve travis matrix
Ensure we test with eslint 3.x, 4.x and 5.x, and node 10 Fixes #97
1 parent d46aa6d commit 46d2444

File tree

3 files changed

+380
-414
lines changed

3 files changed

+380
-414
lines changed

.travis.yml

+24-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
language: node_js
22
cache: yarn
33
node_js:
4-
- "4"
5-
- "6"
6-
- "7"
7-
- "8"
4+
- "10"
85
- "9"
6+
- "8"
7+
- "7"
8+
- "6"
9+
- "4"
910
env:
10-
- ESLINT_VERSION=latest
11-
- ESLINT_VERSION=3.15.0
12-
before_script:
13-
- if [[ $ESLINT_VERSION != "latest" ]]; then
11+
- ESLINT_VERSION=current
12+
- ESLINT_VERSION=^5
13+
- ESLINT_VERSION=^4
14+
- ESLINT_VERSION=^3
15+
matrix:
16+
# ESLint 5 dropped support node v4 or v7
17+
exclude:
18+
- node_js: "7"
19+
env: ESLINT_VERSION=current
20+
- node_js: "4"
21+
env: ESLINT_VERSION=current
22+
- node_js: "7"
23+
env: ESLINT_VERSION=^5
24+
- node_js: "4"
25+
env: ESLINT_VERSION=^5
26+
install:
27+
- if [[ $ESLINT_VERSION != "current" ]]; then
1428
yarn upgrade "eslint@$ESLINT_VERSION";
1529
fi
30+
- yarn install
31+
- yarn run --silent eslint --version

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"devDependencies": {
3838
"@not-an-aardvark/node-release-script": "^0.1.0",
39-
"eslint": "^3.14.1",
39+
"eslint": "^5.6.0",
4040
"eslint-config-not-an-aardvark": "^2.0.0",
4141
"eslint-config-prettier": "^1.3.0",
4242
"eslint-plugin-eslint-plugin": "^0.7.1",

0 commit comments

Comments
 (0)