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