Skip to content

Commit 4a5f750

Browse files
committed
Add cached build for travis in case of docker pull limit was hit.
1 parent 5b6cd29 commit 4a5f750

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
@@ -55,8 +55,8 @@ before_script:
5555

5656
# Run the build and packaging steps with cache
5757
script:
58-
- $TRAVIS_BUILD_DIR/docker-compose.sh pull
59-
# - $TRAVIS_BUILD_DIR/docker-compose.sh cache
58+
# Try to pull the image from docker or build it (if the rate limit was hit)
59+
- $TRAVIS_BUILD_DIR/docker-compose.sh pull || $TRAVIS_BUILD_DIR/docker-compose.sh cache
6060
- $TRAVIS_BUILD_DIR/docker-compose.sh pack
6161

6262
# Custom script for deploying to GitHub the artifacts

0 commit comments

Comments
 (0)