Merge pull request #1569 from TekuConcept/bug/js-travisci-v4

Fixes Travis CI Build Errors With Node-v4
This commit is contained in:
William S Fulton 2019-06-27 07:30:15 +01:00 committed by GitHub
commit 9bca8ae27e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ 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" ] ; then
if [ "$VER" == "0.10" ] || [ "$VER" == "0.12" ] || [ "$VER" == "4" ] ; then
# travis_retry sudo apt-get install -qq nodejs node-gyp
travis_retry npm install -g node-gyp@$VER
else