try using newer ubuntu dist and installing buildx explicitly
@@ -17,8 +17,17 @@ after_success:
rm coverage.txt
fi
- travis_wait 30 ./ci/push_docker.sh
-before_script: ~
-dist: xenial
+before_install:
+ # install a newer docker version which supports buildx
+ - sudo rm -rf /var/lib/apt/lists/*
+ - 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) edge"
+ - sudo apt-get update
+ - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
+ - mkdir -vp ~/.docker/cli-plugins/
+ - curl --silent -L "https://github.com/docker/buildx/releases/download/v0.3.0/buildx-v0.3.0.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
+ - chmod a+x ~/.docker/cli-plugins/docker-buildx
+dist: bionic
go:
- "1.15.2"
env:
@@ -78,6 +87,7 @@ before_script:
# Verify that the code is properly formatted.
- if [[ -n "$(gofmt -l .)" ]]; then echo "The following files were not formatted properly!"; gofmt -l .; exit 1; fi
script:
+ - docker buildx version
- ./test/run.sh || travis_terminate 1
services:
- docker
