From 23fbc33f5d00b3dac30ab37616ea6df14c8540e3 Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Mon, 30 Jul 2018 20:05:50 -0400 Subject: [PATCH] Debug travis ip and psql connect issues --- .travis.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 37b0fa76..311e93ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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