From 1430ed79b387e3f0f9c1cdb3681560c3a25f26e9 Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Wed, 11 Jul 2018 09:30:13 -0400 Subject: [PATCH] Modify submodule config on Travis before update I guess this is a known issue when using Travis and SSH-based submodules. The other option is to change the submodule config to be HTTPS-based, but this should work. --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 486de5cc..02dab0db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,19 @@ sudo: required language: python python: "3.6" services: docker +git: + submodules: false env: global: - TESTER_IMAGE_NAME=atst-tester - PROD_IMAGE_NAME=atst-prod +before_install: + # Use sed to replace the SSH URL with the public URL + - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules + # Manually initialize submodules + - git submodule update --init --recursive + before_script: - docker login -u $ATAT_DOCKER_REGISTRY_USERNAME -p $ATAT_DOCKER_REGISTRY_PASSWORD $ATAT_DOCKER_REGISTRY_URL - docker build --tag "${TESTER_IMAGE_NAME}" . -f deploy/docker/tester/Dockerfile