We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e3498b commit 9e5ae53Copy full SHA for 9e5ae53
.travis.yml
@@ -6,9 +6,9 @@ env:
6
os:
7
- linux
8
- osx
9
-
10
script: npm run-script test
11
before_install:
+ - source build_scripts/osx-before_install.sh
12
- nvm install $NODE_VERSION
13
- npm config set spin false
14
install:
build_scripts/osx-before_install.sh
@@ -0,0 +1,12 @@
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
+ brew install nvm
+ # Use -p just in case the folder already exists
+ mkdir -p ~/.nvm
+ # Make sure the NVM_DIR is set before sourcing nvm.sh
+ export NVM_DIR=~/.nvm && source $(brew --prefix nvm)/nvm.sh
+ nvm alias default $NODE_VERSION
+fi
0 commit comments