Skip to content

Commit

Permalink
chore(travis): Test on Node 5, use default npm; uprade g++
Browse files Browse the repository at this point in the history
Node 5 includes npm 3 by default so we don't have to update npm to make sure
it works on that version. On the other hand, most people don't upgrade npm
and just use the default included version, especially that it's very hard
to update npm on Windows. It's good to make sure Karma still works with npm 2,
especially that Node 4, current LTS will never upgrade to npm 3.

g++ got upgraded so that native module compilation works on Node >= 4;
otherwise lots of optional packages fail, making the log too large for Travis
which in turn kills the job.
  • Loading branch information
mgol committed Oct 30, 2015
1 parent ef6f05c commit 24737e0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,28 @@ node_js:
- "0.10"
- "0.12"
- "4"
- "5"

env:
global:
- SAUCE_USERNAME: karmarunnerbot
- secure: "bRVY+hYZwMf1SqVnMyZRJTLD0gN1hLx9/MwO8MM/qBiu3YNjXy49XElfMdzMKN6cZeKTmhcnjmZonbJuI1PQ2t+utGkyjnlVLJ/OlWptreKLzIlcbt4hrdPoTcjmUTwDWq9Ex9cVoYX8AzCasETttpczp3P+s3+vmOUj8z25JyU="
- CXX=g++-4.8

# Make sure we have a new npm@3
# Make sure we have a new npm on Node 0.10. npm >= 2 should work so by not updating them
# here we have proper version coverage, especially that most people use the npm version
# that's included in a Node version they use.
before_install:
- npm install -g npm
- '[ "${TRAVIS_NODE_VERSION}" != "0.10" ] || npm install -g npm'
- npm config set loglevel warn
- g++-4.8 --version

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8

before_script:
- export DISPLAY=:99.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
"karma": "./bin/karma"
},
"engines": {
"node": "0.10 || 0.12 || 4"
"node": "0.10 || 0.12 || 4 || 5"
},
"version": "0.13.14",
"license": "MIT"
Expand Down

0 comments on commit 24737e0

Please sign in to comment.