Skip to content

Commit

Permalink
Only run lint on node 12
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Mar 24, 2020
1 parent dd570e3 commit 0bb7372
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
language: node_js
node_js:
- '8'
- '10'
- '12'
- 8
- 10
- 12
- 'node'

script: 'npm install && npm run ci'
matrix:
include:
- name: Lint
node_js: 12
script: npm run lint

script: 'npm install && npm run test:ci'
after_success: '<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"scripts": {
"lint": "eslint . && prettier --check '**/*.js'",
"test": "mocha",
"ci": "npm test && npm run lint && npm run coverage",
"test:ci": "npm test && npm run lint && npm run coverage",
"coverage": "NODE_ENV=development nyc --reporter=lcov --reporter=text --all -- npm test && echo google-chrome coverage/lcov-report/index.html"
},
"repository": {
Expand Down

0 comments on commit 0bb7372

Please sign in to comment.