From 32820518cfeb30a2418f8d7349ad6e3f39ff76db Mon Sep 17 00:00:00 2001 From: Clement Michaud <clement.michaud34@gmail.com> Date: Wed, 4 Dec 2019 08:41:59 +0100 Subject: [PATCH] Fix Docker publication in Travis. --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2a651415..1031ec18 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,9 +20,6 @@ addons: - google-chrome-stable install: - - go mod download - -before_script: - export PATH=./cmd/authelia-scripts/:/tmp:$PATH - source bootstrap.sh @@ -32,6 +29,7 @@ jobs: before_script: - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash - nvm install v12 && nvm use v12 + - go mod download script: - authelia-scripts --log-level debug ci @@ -42,12 +40,16 @@ jobs: - SUITE_NAME=BypassAll before_script: # Install chrome driver + # TODO(c.michaud): this could be done in authelia-scripts instead for devs to not do the install themselves. + # or even provide a docker image with a selenium server. - wget -N https://chromedriver.storage.googleapis.com/78.0.3904.70/chromedriver_linux64.zip -P ~/ - unzip ~/chromedriver_linux64.zip -d ~/ - rm ~/chromedriver_linux64.zip - sudo mv -f ~/chromedriver /usr/local/share/ - sudo chmod +x /usr/local/share/chromedriver - sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver + + - go mod download script: # Run the suite - CI=true authelia-scripts --log-level debug suites test $SUITE_NAME --headless @@ -90,7 +92,6 @@ jobs: stage: build images env: - ARCH=amd64 - install: skip script: - while sleep 9m; do echo '===== Prevent build from terminating ====='; done & - authelia-scripts docker build --arch=$ARCH @@ -119,7 +120,6 @@ jobs: - stage: deploy manifests env: - DOCKER_CLI_EXPERIMENTAL=enabled - install: skip script: - authelia-scripts docker push-manifest