[TASK] Add eslint enforcement to travis.yml

This commit is contained in:
Chris Clark
2015-02-03 16:11:44 -08:00
parent af4ed295e0
commit b62f42006c
5 changed files with 190 additions and 108 deletions

View File

@@ -1,6 +1,9 @@
language: node_js
node_js:
- "0.10"
before_script:
- npm install -g eslint
- eslint --reset -c ./eslintrc $(git --no-pager diff --name-only --relative FETCH_HEAD $(git merge-base FETCH_HEAD origin/HEAD) | grep "\.js$")
script: MOCHA_REPORTER=tap npm test --coverage
after_success:
- npm run coveralls