diff --git a/.travis.yml b/.travis.yml index f7a6a9048..27a58332c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: