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: git:
depth: 1 depth: 1
sudo: false sudo: false
language: node_js language: node_js
node_js: before_install:
- "0.10" - sh -c "if [ '$ESLINT_VERSION' = '2' ]; then npm i --save-dev eslint@2; fi"
- "0.12" matrix:
- "4" include:
- "5" - node_js: "0.10"
- "6" 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", "homepage": "https://github.com/babel/babel-eslint",
"devDependencies": { "devDependencies": {
"eslint": "^2.4.0", "eslint": "^3.0.0",
"espree": "^3.0.0", "espree": "^3.0.0",
"mocha": "^2.3.3" "mocha": "^2.3.3"
} }