Skip to content

Commit 0a0213a

Browse files
committed
add more node versions to travis.yml, fix RobotWebTools#192
Make sure to only update npm in the 0.8 and 0.10 versions to not run into this issue: nodejs/node#433
1 parent 10b2a8e commit 0a0213a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: node_js
22
node_js:
33
- "0.10"
4+
- "0.12"
5+
- "4"
46
addons:
57
firefox: "31.0" # 3.4->31.0
68
os:
@@ -24,7 +26,10 @@ before_install:
2426
- cd ../
2527
- rosdep install --from-paths src --ignore-src --rosdistro hydro -y
2628
- cd /tmp/ws/roslibjs
27-
- npm install -g npm
29+
30+
# Only update npm in the 0.8 and 0.10 versions to not run into this issue:
31+
# https://github.com/nodejs/node/issues/433
32+
- case ${TRAVIS_NODE_VERSION} in 0.8*|0.10*) npm update -g npm ;; esac
2833
- npm install -g grunt-cli karma-cli
2934

3035
# Set up Xfvb for Firefox headless testing

0 commit comments

Comments
 (0)