From 84f1bd95e74cf970612733f48fc4c14f19e0d036 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Fri, 15 Jan 2016 12:44:21 -0600 Subject: [PATCH] Use non-standart postgresql port for testing --- .travis.yml | 2 +- script/test_all.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ef49be7..a807cc8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,4 +18,4 @@ install: script: - make build - make test - - PGHOST=127.0.0.1 ./scripts/test_all.sh \ No newline at end of file + - PGHOST=127.0.0.1 ./script/test_all.sh \ No newline at end of file diff --git a/script/test_all.sh b/script/test_all.sh index a2aa5db..7617889 100755 --- a/script/test_all.sh +++ b/script/test_all.sh @@ -6,14 +6,14 @@ export PGHOST=${PGHOST:-192.168.99.100} export PGUSER="postgres" export PGPASSWORD="" export PGDATABASE="booktown" -export PGPORT="5432" +export PGPORT="15432" for i in {1..5} do export PGVERSION="9.$i" echo "Running tests against PostgreSQL v$PGVERSION" docker rm -f postgres || true - docker run -p 5432:5432 --name postgres -e POSTGRES_PASSWORD=$PGPASSWORD -d postgres:$PGVERSION + docker run -p $PGPORT:5432 --name postgres -e POSTGRES_PASSWORD=$PGPASSWORD -d postgres:$PGVERSION sleep 5 make test echo "----------"