Merge branch 'js-v8-52-tests'

* js-v8-52-tests:
  fixed nvm
  node tests: use provided version if present
  travis tests for different node versions
  fix travis tests
  Test NodeJS 4, 6, 8, and 10
  Remove warnings on Node 6.x aka V8 5.0 and 5.1
  Add Node 7.x aka V8 5.2+ support
This commit is contained in:
William S Fulton 2018-08-02 07:10:55 +01:00
commit 4f7106cda2
6 changed files with 125 additions and 18 deletions

View file

@ -41,7 +41,16 @@ case "$SWIGLANG" in
"javascript")
case "$ENGINE" in
"node")
travis_retry sudo apt-get install -qq nodejs node-gyp
if [[ -z "$VER" ]]; then
travis_retry sudo apt-get install -qq nodejs node-gyp
else
travis_retry wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.10/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
travis_retry nvm install ${VER}
nvm use ${VER}
travis_retry npm install -g node-gyp
fi
;;
"jsc")
travis_retry sudo apt-get install -qq libwebkitgtk-dev