Skip to content

Commit

Permalink
Only run linting on Node.js 4.x and up
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Dec 25, 2016
1 parent 620b1d5 commit 80f547a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ before_script:
- npm prune
- git version
script:
- npm run lint
# Only run linting on Node.js 4.x and up
- if [ $(node -pe 'process.version.match(/v(\d+)\./)[1] >= 4') == 'true' ]; then npm run lint; fi
- npm run test
- npm run check-coverage
after_success:
Expand Down

0 comments on commit 80f547a

Please sign in to comment.