Skip to content

Commit 8550237

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 8550237

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
language: node_js
22
node_js:
33
- "0.10"
4+
- "0.12"
5+
- "1"
6+
- "2"
7+
- "3"
8+
- "4"
49
addons:
510
firefox: "31.0" # 3.4->31.0
611
os:
@@ -24,7 +29,10 @@ before_install:
2429
- cd ../
2530
- rosdep install --from-paths src --ignore-src --rosdistro hydro -y
2631
- cd /tmp/ws/roslibjs
27-
- npm install -g npm
32+
33+
# Only update npm in the 0.8 and 0.10 versions to not run into this issue:
34+
# https://github.com/nodejs/node/issues/433
35+
- case ${TRAVIS_NODE_VERSION} in 0.8*|0.10*) npm update -g npm ;; esac
2836
- npm install -g grunt-cli karma-cli
2937

3038
# Set up Xfvb for Firefox headless testing

0 commit comments

Comments
 (0)