2016-02-10 15:04:48 +00:00
|
|
|
language: objective-c
|
|
|
|
|
2016-10-07 17:06:28 +00:00
|
|
|
osx_image: xcode8
|
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"
|
2016-10-19 14:47:47 +00:00
|
|
|
- wget https://github.com/yarnpkg/yarn/releases/download/v0.16.0/yarn-0.16.0.js
|
|
|
|
- export yarn="node $(pwd)/yarn-0.16.0.js"
|
|
|
|
- $yarn install
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
script:
|
2016-10-16 22:37:45 +00:00
|
|
|
- if [[ "$TEST_TYPE" = objc-ios ]]; then travis_retry travis_wait ./scripts/objc-test-ios.sh; fi
|
2016-10-06 10:16:41 +00:00
|
|
|
- if [[ "$TEST_TYPE" = objc-tvos ]]; then travis_retry travis_wait ./scripts/objc-test-tvos.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-12-31 02:30:57 +00:00
|
|
|
- if [[ "$TEST_TYPE" = e2e-objc-tvos ]]; then node ./scripts/run-ci-e2e-tests.js --tvos --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
|
2017-02-07 00:16:46 +00:00
|
|
|
- if [[ ( "$TEST_TYPE" = podspecs ) && ( "$TRAVIS_PULL_REQUEST" = "false" ) ]]; then gem install cocoapods && ./scripts/process-podspecs.sh; fi
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
2016-12-31 02:30:57 +00:00
|
|
|
- TEST_TYPE=e2e-objc-tvos
|
2016-03-02 23:24:44 +00:00
|
|
|
- TEST_TYPE=e2e-objc
|
2016-10-16 22:37:45 +00:00
|
|
|
- TEST_TYPE=objc-ios
|
2016-10-06 10:16:41 +00:00
|
|
|
- TEST_TYPE=objc-tvos
|
2016-04-13 15:18:49 +00:00
|
|
|
- TEST_TYPE=js
|
2017-02-07 00:16:46 +00:00
|
|
|
- TEST_TYPE=podspecs
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^.*-stable$/
|
2016-03-03 17:50:52 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
2016-12-12 14:43:59 +00:00
|
|
|
- mkonicek@fb.com
|
2017-02-10 21:17:56 +00:00
|
|
|
- eloy@artsy.net
|
2016-03-03 17:50:52 +00:00
|
|
|
on_failure: change
|
|
|
|
on_success: change
|
2017-02-22 23:51:00 +00:00
|
|
|
slack:
|
|
|
|
secure: oQL2C966v7/DtxNqfM7WowjY0R5mgLHR2qHkoucwK5iVrmaptnHr8fq01xlj7VT0kDwNLqT3n4+gtCviGw89lq71m3W76c8Pms/10jpjw+LwAfQPVizNw/Bx8MFNNmjDauK/auFxaybiLZupi7zd4xFGOZvScmFdfD4CAAp2OOA=
|