Skip to content

Commit 09838f5

Browse files
committed
Manually invoke apt-get update and install instead of using addon
This allows us to use travis_retry on these operations.
1 parent 9a45241 commit 09838f5

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.travis.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,10 @@ dist: trusty
88
os: linux
99
language: generic
1010

11-
addons:
12-
apt:
13-
packages:
14-
# Use more recent docker version
15-
- docker-ce
16-
# Can be removed if Travis ever upgrades to Bionic
17-
- realpath
18-
1911
services:
2012
- docker
2113

2214
cache:
23-
apt: true
2415
ccache: true
2516
directories:
2617
- $HOME/cache
@@ -122,6 +113,10 @@ before_cache:
122113
# Save builder image
123114
- docker save dash-builder-$BUILD_TARGET-$TRAVIS_JOB_NUMBER $(docker history -q dash-builder-$BUILD_TARGET-$TRAVIS_JOB_NUMBER | grep -v \<missing\>) | gzip -2 > $HOME/cache/docker/dash-builder-$BUILD_TARGET.tar.gz
124115

116+
before_install:
117+
- travis_retry travis_apt_get_update
118+
- travis_retry sudo apt-get -yq --no-install-suggests --no-install-recommends install docker-ce realpath
119+
125120
install:
126121
# Our scripts try to be Travis agnostic
127122
- export PULL_REQUEST="$TRAVIS_PULL_REQUEST"

0 commit comments

Comments
 (0)