Test eslint 3 and 2 on travis (babel/babel-eslint#340)

closes babel/babel-eslint#332
This commit is contained in:
Daniel Tschinder 2016-07-11 00:28:57 +02:00
parent 0cb35ab04e
commit af44a1cc83
2 changed files with 21 additions and 8 deletions

View File

@ -1,11 +1,24 @@
---
git:
depth: 1
sudo: false
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
- "6"
before_install:
- sh -c "if [ '$ESLINT_VERSION' = '2' ]; then npm i --save-dev eslint@2; fi"
matrix:
include:
- node_js: "0.10"
env: ESLINT_VERSION=2
- node_js: "0.12"
env: ESLINT_VERSION=2
- node_js: "4"
env: ESLINT_VERSION=2
- node_js: "4"
env: ESLINT_VERSION=3
- node_js: "5"
env: ESLINT_VERSION=2
- node_js: "5"
env: ESLINT_VERSION=3
- node_js: "6"
env: ESLINT_VERSION=2
- node_js: "6"
env: ESLINT_VERSION=3

View File

@ -34,7 +34,7 @@
},
"homepage": "https://github.com/babel/babel-eslint",
"devDependencies": {
"eslint": "^2.4.0",
"eslint": "^3.0.0",
"espree": "^3.0.0",
"mocha": "^2.3.3"
}