From e93eaeb3fe21ce2ccc1365277a01863e6bc84d9c Mon Sep 17 00:00:00 2001 From: Dale Hui Date: Tue, 30 Jul 2019 00:06:35 -0700 Subject: [PATCH] Another attempt at fixing builds Addresses: https://github.com/golang-migrate/migrate/issues/254 --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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}"