Skip to content

Commit

Permalink
Only run lint on node.js 12
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Mar 28, 2020
1 parent 0e34452 commit 1aeeeab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
@@ -1,7 +1,14 @@
language: node_js
node_js:
- '8'
- '10'
- 8
- 10
- 'node'
script: 'npm run ci'

matrix:
include:
- name: Lint
node_js: 12
script: npm run lint

script: npm run test:ci
after_success: '<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js'
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -5,9 +5,9 @@
"main": "lib/expressExtendCsp.js",
"scripts": {
"lint": "eslint . && prettier --check '**/*.js'",
"coverage": "NODE_ENV=development nyc --reporter=lcov --reporter=text --all -- mocha && echo google-chrome coverage/lcov-report/index.html",
"test": "mocha",
"ci": "npm test && npm run lint && npm run coverage",
"coverage": "NODE_ENV=development nyc --reporter=lcov --reporter=text --all -- mocha && echo google-chrome coverage/lcov-report/index.html"
"test:ci": "npm run coverage"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 1aeeeab

Please sign in to comment.