diff --git a/.travis.yml b/.travis.yml index 2c32a49183..27e9a96cac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,12 +13,13 @@ env: - TEST="bash ./scripts/travis_rpc_checker.sh" - TEST="bash ./scripts/travis_rosetta_checker.sh" -before_install: - # upgrade docker to the latest supported by the OS loaded in the travis image - - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - - - sudo add-apt-repository --yes "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" - - sudo apt-get update - - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce +# upgrade docker to latest stable version +addons: + apt: + sources: + - sourceline: deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable + packages: + - docker.io install: # default working directory with source code is automatically set to