From fcf46fc8f17a6e6e6a6b8c450824a9b3178c1193 Mon Sep 17 00:00:00 2001 From: Michael Berlin Date: Fri, 24 Jul 2015 10:50:49 -0700 Subject: [PATCH] Travis: Enable retries for unit tests as well. At this point, they are too flaky and it hinders productivity too much to bother with that. --- .travis.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 47df639ebbc..f0f1fe8bfed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -89,16 +89,11 @@ script: - source dev.env # Log GOMAXPROCS (should be 2 as of 07/2015). - go run travis/log_gomaxprocs.go - # TODO(mberlin): Readd travis_retry when done testing. - | return_value=1 for target in $MAKE_TARGET; do echo "Running: make $target" - if [[ $target != unit_test* ]]; then - # Retry integration tests up to three times, but not unit tests. - TRAVIS_RETRY_CMD="travis_retry" - fi - $TRAVIS_RETRY_CMD /usr/bin/time -f "elapsed: %E CPU: %P Memory: %M kB" make $target + travis_retry /usr/bin/time -f "elapsed: %E CPU: %P Memory: %M kB" make $target return_value=$? if [ $return_value -ne 0 ]; then echo "ERROR: make $target failed with code: $return_value. Please fix the problem and re-trigger the test."