Skip to content

Commit 631176e

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 cd6dfc7 commit 631176e

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

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

3030
after_script:
3131
- docker images

0 commit comments

Comments
 (0)