Skip to content

Commit 2ac35b2

Browse files
committed
Add "travis_retry" to our build to reduce transitory failures
Documentation is at https://docs.travis-ci.com/user/common-build-problems/#travis_retry See docker-library/memcached#14 for the test PR for this pattern.
1 parent 9245424 commit 2ac35b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ before_script:
1616
- image="docker:${VERSION}${VARIANT:+-$VARIANT}"
1717

1818
script:
19-
- docker build -t "$image" .
19+
- travis_retry docker build -t "$image" .
2020
- ~/official-images/test/run.sh "$image"
21-
- docker build -t "$image-dind" dind
21+
- travis_retry docker build -t "$image-dind" dind
2222
- ~/official-images/test/run.sh "$image-dind"
23-
- docker build -t "$image-git" git
23+
- travis_retry docker build -t "$image-git" git
2424
- ~/official-images/test/run.sh "$image-git"
2525

2626
after_script:

0 commit comments

Comments
 (0)