diff --git a/.travis.yml b/.travis.yml index 33892a2..9931f72 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,12 +26,14 @@ cache: directories: - $GOPATH/pkg -addons: - apt: - packages: - - docker-ce before_install: + # Update docker to latest version: https://docs.travis-ci.com/user/docker/#installing-a-newer-docker-version + - 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 golangci-lint - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0 - echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"