From 0a4b600a09ee8d0a5bf202edd2c04c00375b218d Mon Sep 17 00:00:00 2001 From: Andrew Gabbitas Date: Thu, 11 Feb 2021 12:07:01 -0700 Subject: [PATCH] Move docker login before docker pull. (#5281) Ensure docker login happens before the docker-compose pull. Change install section to a more appropriate before_script section for the docker login and pull. --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index dd3ab1ed2..622b57b7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,15 +41,15 @@ jobs: allow_failures: - env: TESTFLAGS="--coverage" CONTAINER="netaccess" -install: - - docker-compose pull - -script: +before_script: # This user is stored in the TravisCI repository settings in the UI As # of 2021-01-20 it is a read-only user in DockerHub but is used to # bypass rate limits imposed by DockerHub to non-authenticated # non-paying users. - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || true + - docker-compose pull + +script: - >- docker-compose run --use-aliases -e TRAVIS_BRANCH