Skip to content
This repository has been archived by the owner on Jan 31, 2021. It is now read-only.

Commit

Permalink
Manually install nvm and node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ash2k committed Nov 12, 2015
1 parent 18fcf3b commit 80808f9
Showing 1 changed file with 36 additions and 12 deletions.
48 changes: 36 additions & 12 deletions .travis.yml
@@ -1,15 +1,39 @@
language: node_js
node_js:
- "0.12"
- 4
- 5
- iojs-v2
- iojs-v3
env:
matrix:
- export NODE_VERSION="0.12"
- export NODE_VERSION="4"
- export NODE_VERSION="5"
- export NODE_VERSION="iojs-v2"
- export NODE_VERSION="iojs-v3"
os:
- linux
- osx
- linux
- osx
before_install:
- "[ $TRAVIS_OS_NAME=osx ] && brew update"
- "[ $TRAVIS_OS_NAME=osx ] && (brew outdated nvm || brew upgrade nvm)"
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then
brew update;
brew install nvm;
export "NVM_DIR=~/.nvm";
source "$(brew --prefix nvm)/nvm.sh";
fi;
nvm install "$NODE_VERSION"
install:
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then
export "NVM_DIR=~/.nvm";
source "$(brew --prefix nvm)/nvm.sh";
fi;
nvm use "$NODE_VERSION";
npm install
script:
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then
export "NVM_DIR=~/.nvm";
source "$(brew --prefix nvm)/nvm.sh";
fi;
nvm use "$NODE_VERSION";
npm test
after_success:
- npm run coveralls
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then
export "NVM_DIR=~/.nvm";
source "$(brew --prefix nvm)/nvm.sh";
fi;
nvm use "$NODE_VERSION";
npm run coveralls

0 comments on commit 80808f9

Please sign in to comment.