diff --git a/.travis.yml b/.travis.yml index 3d76a657..479a8955 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,12 +21,12 @@ before_install: before_script: - docker run -d --name postgres96 postgres:9.6-alpine - docker run --link postgres96:postgres96 waisbrot/wait - - postgres_ip="$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" postgres96)" + - export postgres_ip="$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" postgres96)" - docker login -u $ATAT_DOCKER_REGISTRY_USERNAME -p $ATAT_DOCKER_REGISTRY_PASSWORD $ATAT_DOCKER_REGISTRY_URL - docker build --tag "${TESTER_IMAGE_NAME}" --add-host "postgreshost:${postgres_ip}" . -f deploy/docker/tester/Dockerfile script: - - docker run "${TESTER_IMAGE_NAME}" + - docker run --add-host "postgreshost:${postgres_ip}" "${TESTER_IMAGE_NAME}" before_deploy: - docker build --tag "${PROD_IMAGE_NAME}" . -f deploy/docker/prod/Dockerfile diff --git a/script/cibuild b/script/cibuild index e9d01564..387f61b8 100755 --- a/script/cibuild +++ b/script/cibuild @@ -4,5 +4,10 @@ source "$(dirname "${0}")"/../script/include/global_header.inc.sh +echo +echo "DEBUG: Hosts file:" +cat /etc/hosts +echo + # Run lint/style checks and unit tests source ./script/test