From f78dec2574eafab1de6343b5f8b8a9c23180d90d Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 9 Apr 2015 10:58:14 +0200 Subject: [PATCH] Run against multiple nodejs versions --- .travis.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index eeefbfa84..398a2c141 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,20 @@ +env: + - NODE_VERSION=0.10 + - NODE_VERSION=0.12 + - NODE_VERSION=iojs + os: - linux - osx install: - - test "$TRAVIS_OS_NAME" = "linux" && sudo apt-get install build-essential git libgnome-keyring-dev fakeroot || true + - git clone https://github.com/creationix/nvm.git ./.nvm + - source ./.nvm/nvm.sh + - nvm install $NODE_VERSION + - nvm use $NODE_VERSION + - if [ $TRAVIS_OS_NAME == "linux" ]; then + sudo apt-get install build-essential git libgnome-keyring-dev fakeroot; + fi script: script/cibuild