From 0a02eb57c2bcba13e14d4916ead34b79f07352d2 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Wed, 1 Mar 2017 07:46:22 -0800 Subject: [PATCH] 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 --- .travis.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 40f52ea8c85334..1729ddb1090e7a 100644 --- a/.travis.yml +++ b/.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: