Skip to content

Commit ba0154d

Browse files
committed
Fix node 6 and 8 testing on Travis
Later versions of node-gyp (7.0.0) being installed by npm don't seem to work with node 6 and 8.
1 parent 6275af6 commit ba0154d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tools/travis-linux-install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ case "$SWIGLANG" in
3939
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
4040
travis_retry nvm install ${VER}
4141
nvm use ${VER}
42-
if [ "$VER" == "0.10" ] || [ "$VER" == "0.12" ] || [ "$VER" == "4" ] ; then
42+
if [ "$VER" == "0.10" ] || [ "$VER" == "0.12" ] || [ "$VER" == "4" ] || [ "$VER" == "6" ] ; then
4343
# travis_retry sudo apt-get install -qq nodejs node-gyp
4444
travis_retry npm install -g node-gyp@$VER
45+
elif [ "$VER" == "8" ] ; then
46+
travis_retry npm install -g node-gyp@6
4547
else
4648
travis_retry npm install -g node-gyp
4749
fi

0 commit comments

Comments
 (0)