File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 8
8
- osx
9
9
script : npm run-script test
10
10
before_install :
11
- - if [[ $TRAVIS_OS_NAME == "osx" ]]; then echo "updating nvm for osx"; brew update; brew install nvm; mkdir ~/.nvm; export NVM_DIR=~/.nvm && source $(brew --prefix nvm)/nvm .sh; nvm alias default $NODE_VERSION; fi
11
+ - source build_scripts/osx-before_install .sh
12
12
- nvm install $NODE_VERSION
13
13
- npm config set spin false
14
14
install :
Original file line number Diff line number Diff line change
1
+ # no shebang as it expects to be run in the current shell, not standalone
2
+ if [[ $TRAVIS_OS_NAME == " osx" ]]; then
3
+ # Recommended by travis guys to always brew update first
4
+ brew update
5
+ # Install NVM
6
+ brew install nvm
7
+ # Use -p just in case the folder already exists
8
+ mkdir -p ~ /.nvm
9
+ # Make sure the NVM_DIR is set before sourcing nvm.sh
10
+ export NVM_DIR=~ /.nvm && source $( brew --prefix nvm) /nvm.sh
11
+ nvm alias default $NODE_VERSION
12
+ fi
You can’t perform that action at this time.
0 commit comments