Skip to content

Commit 4e32e05

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 4d56460 commit 4e32e05

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

1818
script:
19-
- docker build -t "$image" "${VARIANT:-.}"
19+
- travis_retry docker build -t "$image" "${VARIANT:-.}"
2020
- ~/official-images/test/run.sh "$image"
2121
# the "onbuild" variant has to happen with the base variant because it's FROM it
22-
- true && [ "$VARIANT" ] || docker build -t "${image}-onbuild" onbuild
22+
- true && [ "$VARIANT" ] || travis_retry docker build -t "${image}-onbuild" onbuild
2323

2424
after_script:
2525
- docker images

0 commit comments

Comments
 (0)