Skip to content

Commit

Permalink
Lint using newer node version on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Sep 16, 2016
1 parent 3e07330 commit a414bef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ cache:
branches:
only:
- master
before_script:
- nvm install stable
- npm run lint
- nvm use $TRAVIS_NODE_VERSION
- npm run unit-tests
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
},
"scripts": {
"prepublish": "babel --out-dir build lib",
"test": "tape -r babel-register test/*.js && eslint lib test"
"lint": "eslint lib test",
"unit-tests": "tape -r babel-register test/*.js",
"test": "npm run unit-tests && npm run lint"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a414bef

Please sign in to comment.