From 324063c2b2b5b527ec4213f5924eadf30a7bbe37 Mon Sep 17 00:00:00 2001 From: Soph <35721420+sophoah@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:29:49 +0700 Subject: [PATCH] [build] upgrade docker in travis build to latest (#4478) * [build] upgrade docker in travis build to latest * add comment to the before_install job --------- Co-authored-by: Gheis Mohammadi --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index dd92b53df..39e3904ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,14 @@ env: - TEST="bash ./scripts/travis_go_checker.sh" - 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 "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 + install: # default working directory with source code is automatically set to # /home/travis/gopath/src/github.com/harmony-one/harmony