Skip to content

Commit 6ff09b8

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 fc46774 commit 6ff09b8

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
@@ -24,10 +24,10 @@ before_script:
2424
- image="$(awk '$1 == "FROM" { print $2; exit }' onbuild/Dockerfile)${VARIANT:+-$VARIANT}"
2525

2626
script:
27-
- docker build -t "$image" "${VARIANT:-.}"
27+
- travis_retry docker build -t "$image" "${VARIANT:-.}"
2828
- ~/official-images/test/run.sh "$image"
2929
# the "onbuild" variant has to happen with the base variant because it's FROM it
30-
- true && [ "$VARIANT" ] || docker build -t "${image}-onbuild" onbuild
30+
- true && [ "$VARIANT" ] || travis_retry docker build -t "${image}-onbuild" onbuild
3131

3232
after_script:
3333
- docker images

0 commit comments

Comments
 (0)