Skip to content

Commit 944b8c7

Browse files
authored
[build] upgrade docker in travis using addons (#4481)
* [build] upgrade docker in travis using addons * [build] upgrade docker in travis with debug command * [build] retrying addons * [build] debug log * [build] clean debug log
1 parent 4978716 commit 944b8c7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Diff for: .travis.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ env:
1313
- TEST="bash ./scripts/travis_rpc_checker.sh"
1414
- TEST="bash ./scripts/travis_rosetta_checker.sh"
1515

16-
before_install:
17-
# upgrade docker to the latest supported by the OS loaded in the travis image
18-
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
19-
- sudo add-apt-repository --yes "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
20-
- sudo apt-get update
21-
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
16+
# upgrade docker to latest stable version
17+
addons:
18+
apt:
19+
sources:
20+
- sourceline: deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable
21+
packages:
22+
- docker.io
2223

2324
install:
2425
# default working directory with source code is automatically set to

0 commit comments

Comments
 (0)