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.
This commit is contained in:
parent
e41f828af3
commit
1430ed79b3
@ -2,11 +2,19 @@ sudo: required
|
|||||||
language: python
|
language: python
|
||||||
python: "3.6"
|
python: "3.6"
|
||||||
services: docker
|
services: docker
|
||||||
|
git:
|
||||||
|
submodules: false
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- TESTER_IMAGE_NAME=atst-tester
|
- TESTER_IMAGE_NAME=atst-tester
|
||||||
- PROD_IMAGE_NAME=atst-prod
|
- 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:
|
before_script:
|
||||||
- docker login -u $ATAT_DOCKER_REGISTRY_USERNAME -p $ATAT_DOCKER_REGISTRY_PASSWORD $ATAT_DOCKER_REGISTRY_URL
|
- 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
|
- docker build --tag "${TESTER_IMAGE_NAME}" . -f deploy/docker/tester/Dockerfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user