Skip to content

Commit

Permalink
Limit eslint on travis to newer nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh committed Oct 28, 2020
1 parent 41651ad commit 4c75efb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@ node_js:
- "15"
script:
- case "$TRAVIS_NODE_VERSION" in
4|5.6.0|5)
4|5.6.0)
tap test/node-version-test.js
;;
*)
npm run test
npm run lint
npm run tap
;;
esac
- case "$TRAVIS_NODE_VERSION" in
4|5.6.0|5|6|8)
;;
*)
npm run eslint
npm run bench
;;
esac
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"main": "v8-compile-cache.js",
"scripts": {
"bench": "bench/run.sh",
"lint": "eslint --max-warnings=0 .",
"test": "tap test/*-test.js",
"posttest": "npm run lint"
"eslint": "eslint --max-warnings=0 .",
"tap": "tap test/*-test.js",
"test": "npm run tap",
"posttest": "npm run eslint"
},
"author": "Andres Suarez <[email protected]>",
"repository": {
Expand Down

0 comments on commit 4c75efb

Please sign in to comment.