Merge pull request #2609 from exponentjs/faster-ci-tests

[Travis] Use Xcode 7 image, remove brew update, install nvm directly
This commit is contained in:
Christopher Chedeau 2015-09-23 07:25:20 -07:00
commit 75d0b904b9
1 changed files with 4 additions and 7 deletions

View File

@ -1,24 +1,21 @@
language: objective-c
osx_image: xcode6.4
osx_image: xcode7
cache:
directories:
- node_modules
- .nvm
before_install:
# Update brew twice because the first run can fail: https://github.com/Homebrew/homebrew/issues/42553
- brew update; brew update
install:
- brew reinstall xctool nvm
- brew reinstall nvm
- mkdir -p .nvm
- export NVM_DIR="$PWD/.nvm"
- source $(brew --prefix nvm)/nvm.sh
- nvm install 4
- rm -Rf `node -p "require('os').tmpDir()"`/jest_preprocess_cache
- npm install -g flow-bin@`node -p "require('fs').readFileSync('.flowconfig', 'utf8').split('[version]')[1].trim()"`
- rm -Rf "${TMPDIR}/jest_preprocess_cache"
- npm config set spin=false
- npm install -g flow-bin@`node -p "require('fs').readFileSync('.flowconfig', 'utf8').split('[version]')[1].trim()"`
- npm install
script: