Skip to content

Commit

Permalink
build: support Node.js 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Aug 2, 2017
1 parent 93a7d2c commit ba7c65b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Expand Up @@ -10,18 +10,14 @@ node_js:
- "5.12"
- "6.10"
- "7.10"
matrix:
include:
- node_js: "8.0"
env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"
allow_failures:
# Allow the nightly installs to fail
- env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"
- "8.1"
sudo: false
cache:
directories:
- node_modules
before_install:
# Skip updating shrinkwrap / lock
- "npm config set shrinkwrap false"
# Setup Node.js version-specific dependencies
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev $(grep -E '\"eslint\\S*\"' package.json | cut -d'\"' -f2)"
Expand Down
2 changes: 2 additions & 0 deletions appveyor.yml
Expand Up @@ -10,10 +10,12 @@ environment:
- nodejs_version: "5.12"
- nodejs_version: "6.10"
- nodejs_version: "7.10"
- nodejs_version: "8.1"
cache:
- node_modules
install:
- ps: Install-Product node $env:nodejs_version
- npm config set shrinkwrap false
- if "%nodejs_version%" equ "0.8" npm rm --save-dev istanbul
- for /f tokens^=2^ delims^=^" %%m in ('findstr /r /c:"eslint[^ ]" package.json') do call npm rm --save-dev %%m
- if exist node_modules npm prune
Expand Down

0 comments on commit ba7c65b

Please sign in to comment.