2016-02-10 15:04:48 +00:00
|
|
|
language: objective-c
|
|
|
|
|
2016-04-16 08:24:18 +00:00
|
|
|
osx_image: xcode7.3
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
install:
|
2016-03-19 09:14:22 +00:00
|
|
|
- mkdir -p /Users/travis/build/facebook/.nvm
|
|
|
|
- export NVM_DIR="/Users/travis/build/facebook/.nvm"
|
2016-05-05 18:23:59 +00:00
|
|
|
- brew install nvm
|
2016-02-10 15:04:48 +00:00
|
|
|
- source $(brew --prefix nvm)/nvm.sh
|
2016-06-21 17:21:24 +00:00
|
|
|
# TODO npm 2 started stalling on Travis, t11852928
|
|
|
|
- nvm install 5
|
2016-02-10 15:04:48 +00:00
|
|
|
- rm -Rf "${TMPDIR}/jest_preprocess_cache"
|
|
|
|
- npm config set spin=false
|
2016-03-02 23:24:44 +00:00
|
|
|
- npm config set progress=false
|
2016-06-21 17:21:24 +00:00
|
|
|
- travis_wait npm install
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
script:
|
2016-06-21 17:21:24 +00:00
|
|
|
- if [[ "$TEST_TYPE" = objc ]]; then travis_retry travis_wait ./scripts/objc-test.sh; fi
|
2016-04-25 14:15:25 +00:00
|
|
|
- if [[ "$TEST_TYPE" = e2e-objc ]]; then node ./scripts/run-ci-e2e-tests.js --ios --js --retries 3; fi
|
2016-03-19 09:14:22 +00:00
|
|
|
- if [[ "$TEST_TYPE" = js ]]; then npm run flow check; fi
|
2016-03-18 15:09:20 +00:00
|
|
|
- if [[ "$TEST_TYPE" = js ]]; then npm test -- --maxWorkers=1; fi
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
2016-03-02 23:24:44 +00:00
|
|
|
- TEST_TYPE=e2e-objc
|
2016-04-06 10:42:27 +00:00
|
|
|
- TEST_TYPE=objc
|
2016-04-13 15:18:49 +00:00
|
|
|
- TEST_TYPE=js
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^.*-stable$/
|
2016-03-03 17:50:52 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- bestander@gmail.com
|
|
|
|
on_failure: change
|
|
|
|
on_success: change
|