Skip to content

Commit

Permalink
Only lint on node.js 12
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 2, 2020
1 parent f2c3a2e commit 2f434d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: node_js
node_js:
- '8'
- '10'
- '12'
- 8
- 10
- 12
env:
- CXX=g++-4.8
addons:
Expand All @@ -11,6 +11,13 @@ addons:
- ubuntu-toolchain-r-test
packages:
- g++-4.8

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

before_install: 'sudo apt-get update && sudo apt-get install -y optipng pngcrush pngquant graphicsmagick libjpeg-turbo-progs inkscape libcairo2-dev libgif-dev libjpeg8-dev zlib1g-dev'
script: 'npm run ci'
script: npm run ci:test
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 @@ -61,7 +61,7 @@
"docker": "docker run --rm -it -v \"$(pwd):/home/nvm/express-processimage\" express-processimage-dev",
"lint": "eslint . && prettier --check '**/*.{js,md}'",
"test": "mocha",
"ci": "npm run coverage && npm run lint",
"test:ci": "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 2f434d7

Please sign in to comment.