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