Skip to content

Commit

Permalink
[Tests] run linter separately from tests; use nvm install-latest-npm;…
Browse files Browse the repository at this point in the history
… allow odd node majors to fail
  • Loading branch information
ljharb committed Nov 4, 2017
1 parent 71204c0 commit 409515f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
sudo: false
language: node_js
node_js:
- '9'
- '8'
- '7'
- '6'
- '5'
- '4'
before_script:
before_install:
- 'nvm install-latest-npm'
script:
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
- 'if [ -n "${TEST-}" ]; then npm run unit-test ; fi'
env:
- TEST=true
after_success:
- npm run coveralls
- 'if [ -n "${TEST-}" ]; then npm run coveralls ; fi'
matrix:
fast_finish: true
include:
- node_js: 'lts/*'
env: PRETEST=true
allow_failures:
- node_js: '9'
- node_js: '7'
- node_js: '5'

0 comments on commit 409515f

Please sign in to comment.