Skip to content

Commit 11c0afb

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 4733c43 commit 11c0afb

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy