Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis: Enable retries for unit tests as well. #921

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down