diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2020-06-06 10:29:41 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2020-06-06 10:29:41 +0100 |
commit | ba0154d90a0e4783675e4ecc582cc345903c323c (patch) | |
tree | 2964dd7c8da2609d7f89b81793c0ddb5cd1694b2 /Tools | |
parent | 6275af60a7586508ccf2a12378a08bfb7c40b26d (diff) | |
download | swig-ba0154d90a0e4783675e4ecc582cc345903c323c.tar.gz |
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.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/travis-linux-install.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/travis-linux-install.sh b/Tools/travis-linux-install.sh index d5157086f..e25b85f04 100755 --- a/Tools/travis-linux-install.sh +++ b/Tools/travis-linux-install.sh @@ -39,9 +39,11 @@ case "$SWIGLANG" in [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" travis_retry nvm install ${VER} nvm use ${VER} - if [ "$VER" == "0.10" ] || [ "$VER" == "0.12" ] || [ "$VER" == "4" ] ; then + if [ "$VER" == "0.10" ] || [ "$VER" == "0.12" ] || [ "$VER" == "4" ] || [ "$VER" == "6" ] ; then # travis_retry sudo apt-get install -qq nodejs node-gyp travis_retry npm install -g node-gyp@$VER + elif [ "$VER" == "8" ] ; then + travis_retry npm install -g node-gyp@6 else travis_retry npm install -g node-gyp fi |