From 1f2a3234d224c182e657228c18b88fa0ea376297 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 24 Apr 2018 22:23:44 -0700 Subject: [PATCH] [Tests] add `nvm install-latest-npm` tests for all node versions --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index 48d4224..f743128 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,7 @@ script: - if [ -n "${SHELL-}" ] && [ -n "${TEST_SUITE}" ]; then if [ "${TEST_SUITE}" = 'installation_iojs' ]; then travis_retry make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL ; else make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL; fi; fi before_cache: - if [ -n "$WITHOUT_CURL" ]; then sudo apt-get install curl -y ; fi + - if [ -n "${NODE-}" ]; then . nvm.sh && nvm install --latest-npm "${NODE}" && npm --version; fi env: global: - CXX=g++-4.8 @@ -77,3 +78,14 @@ env: - SHELL=zsh TEST_SUITE=installation_iojs WITHOUT_CURL=1 # - SHELL=ksh TEST_SUITE=installation_iojs # - SHELL=ksh TEST_SUITE=installation_iojs WITHOUT_CURL=1 + - NODE=10 TEST="nvm install-latest-npm" + - NODE=9 TEST="nvm install-latest-npm" + - NODE=8 TEST="nvm install-latest-npm" + - NODE=7 TEST="nvm install-latest-npm" + - NODE=6 TEST="nvm install-latest-npm" + - NODE=5 TEST="nvm install-latest-npm" + - NODE=5.9 TEST="nvm install-latest-npm" + - NODE=4 TEST="nvm install-latest-npm" + - NODE=4.6 TEST="nvm install-latest-npm" + - NODE=4.5 TEST="nvm install-latest-npm" + - NODE=4.4 TEST="nvm install-latest-npm"