Fast finish Travis builds, disable tvOS and JS tests
Reviewed By: mkonicek Differential Revision: D4635182 Ninja: Manual import https://github.com/facebook/react-native/pull/12603 fbshipit-source-id: f512bf3ce7840b3fbc229e9225e06e3112d849d3
This commit is contained in:
parent
23f2f5f239
commit
e44730cb63
21
.travis.yml
21
.travis.yml
|
@ -18,21 +18,18 @@ install:
|
|||
|
||||
script:
|
||||
- if [[ "$TEST_TYPE" = objc-ios ]]; then travis_retry travis_wait ./scripts/objc-test-ios.sh; fi
|
||||
- if [[ "$TEST_TYPE" = objc-tvos ]]; then travis_retry travis_wait ./scripts/objc-test-tvos.sh; fi
|
||||
- if [[ "$TEST_TYPE" = e2e-objc ]]; then node ./scripts/run-ci-e2e-tests.js --ios --js --retries 3; fi
|
||||
- if [[ "$TEST_TYPE" = e2e-objc-tvos ]]; then node ./scripts/run-ci-e2e-tests.js --tvos --retries 3; fi
|
||||
- if [[ "$TEST_TYPE" = js ]]; then npm run flow check; fi
|
||||
- if [[ "$TEST_TYPE" = js ]]; then npm test -- --maxWorkers=1; fi
|
||||
- if [[ ( "$TEST_TYPE" = podspecs ) && ( "$TRAVIS_PULL_REQUEST" = "false" ) ]]; then gem install cocoapods && ./scripts/process-podspecs.sh; fi
|
||||
|
||||
|
||||
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.
|
||||
env:
|
||||
matrix:
|
||||
- TEST_TYPE=e2e-objc-tvos
|
||||
- TEST_TYPE=e2e-objc
|
||||
- TEST_TYPE=objc-ios
|
||||
- TEST_TYPE=objc-tvos
|
||||
- TEST_TYPE=js
|
||||
- TEST_TYPE=podspecs
|
||||
- TEST_TYPE=objc-ios
|
||||
- TEST_TYPE=podspecs
|
||||
- TEST_TYPE=e2e-objc
|
||||
|
||||
branches:
|
||||
only:
|
||||
|
@ -43,7 +40,7 @@ notifications:
|
|||
email:
|
||||
recipients:
|
||||
- mkonicek@fb.com
|
||||
- eloy@artsy.net
|
||||
- eloy@artsy.net # Eloy Durán maintains the podspecs test and wants to be notified about failures.
|
||||
on_failure: change
|
||||
on_success: change
|
||||
slack:
|
||||
|
|
Loading…
Reference in New Issue