Debug travis ip and psql connect issues

This commit is contained in:
Devon Mackay 2018-07-30 20:05:50 -04:00 committed by richard-dds
parent 3dcdcdfb3b
commit 23fbc33f5d

View File

@ -14,15 +14,15 @@ env:
- 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
- /sbin/ip route|awk '/default/ { print $3 }'
- /sbin/ip addr
- ./foo
# 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
- /sbin/ip route|awk '/default/ { print $3 }'
- /sbin/ip addr
before_script:
- netstat -anlp | grep LISTEN | grep tcp
- travis_host_ip="$(/sbin/ip route|awk '/default/ { print $3 }')"
- docker login -u $ATAT_DOCKER_REGISTRY_USERNAME -p $ATAT_DOCKER_REGISTRY_PASSWORD $ATAT_DOCKER_REGISTRY_URL
- docker build --tag "${TESTER_IMAGE_NAME}" --add-host "travishost:${travis_host_ip}" . -f deploy/docker/tester/Dockerfile