2016-02-10 15:04:48 +00:00
|
|
|
language: objective-c
|
|
|
|
|
2017-06-02 15:55:32 +00:00
|
|
|
osx_image: xcode8.3
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
install:
|
2017-07-07 09:29:23 +00:00
|
|
|
- nvm install 7
|
2016-02-10 15:04:48 +00:00
|
|
|
- rm -Rf "${TMPDIR}/jest_preprocess_cache"
|
2017-07-07 13:20:30 +00:00
|
|
|
- brew install yarn --ignore-dependencies
|
2017-07-16 00:05:11 +00:00
|
|
|
- brew install watchman
|
2017-07-07 13:20:30 +00:00
|
|
|
- yarn install
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
script:
|
2017-07-07 09:29:23 +00:00
|
|
|
- if [[ "$TEST_TYPE" = objc-ios ]]; then travis_retry travis_wait 30 ./scripts/objc-test-ios.sh test; fi
|
|
|
|
- if [[ "$TEST_TYPE" = objc-tvos ]]; then travis_retry travis_wait 30 ./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
|
2017-07-07 09:29:23 +00:00
|
|
|
- if [[ ( "$TEST_TYPE" = podspecs ) && ( "$TRAVIS_PULL_REQUEST" = "false" ) ]]; then gem install cocoapods && travis_wait 30 ./scripts/process-podspecs.sh; fi
|
2016-02-10 15:04:48 +00:00
|
|
|
|
2017-07-07 09:29:23 +00:00
|
|
|
cache:
|
|
|
|
- cocoapods
|
|
|
|
- yarn
|
2017-03-01 15:46:22 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
- fast_finish: true # Fail the whole build as soon as one test type fails. Should help with Travis capacity issues (very long queues).
|
|
|
|
|
|
|
|
# The order of these tests says which are more likely to run first and fail the whole build fast.
|
2016-02-10 15:04:48 +00:00
|
|
|
env:
|
2017-03-01 15:46:22 +00:00
|
|
|
- TEST_TYPE=objc-ios
|
|
|
|
- TEST_TYPE=podspecs
|
|
|
|
- TEST_TYPE=e2e-objc
|
2017-03-06 22:10:07 +00:00
|
|
|
- TEST_TYPE=objc-tvos
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^.*-stable$/
|
2016-03-03 17:50:52 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
2017-03-06 22:10:07 +00:00
|
|
|
- douglowder@mac.com # Doug Lowder built and maintains Apple TV specific code and wants to be notified about tvOS failures.
|
2017-03-01 15:46:22 +00:00
|
|
|
- eloy@artsy.net # Eloy Durán maintains the podspecs test and wants to be notified about failures.
|
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=
|
2017-02-28 20:23:52 +00:00
|
|
|
on_pull_requests: false
|
|
|
|
on_failure: change
|
|
|
|
on_success: change
|