Skip to content

Commit e7230a5

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 3450749 commit e7230a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ before_script:
3030
- image="$(awk '$1 == "FROM" { print $2; exit }' onbuild/Dockerfile)${VARIANT:+-$VARIANT}"
3131

3232
script:
33-
- docker build -t "$image" "${VARIANT:-.}"
33+
- travis_retry docker build -t "$image" "${VARIANT:-.}"
3434
- ~/official-images/test/run.sh "$image"
3535
# the "onbuild" variant has to happen with the base variant because it's FROM it
36-
- true && [ "$VARIANT" ] || docker build -t "${image}-onbuild" onbuild
36+
- true && [ "$VARIANT" ] || travis_retry docker build -t "${image}-onbuild" onbuild
3737

3838
after_script:
3939
- docker images

0 commit comments

Comments
 (0)