Use non-standart postgresql port for testing
This commit is contained in:
parent
9766bb2ed2
commit
84f1bd95e7
@ -18,4 +18,4 @@ install:
|
|||||||
script:
|
script:
|
||||||
- make build
|
- make build
|
||||||
- make test
|
- make test
|
||||||
- PGHOST=127.0.0.1 ./scripts/test_all.sh
|
- PGHOST=127.0.0.1 ./script/test_all.sh
|
@ -6,14 +6,14 @@ export PGHOST=${PGHOST:-192.168.99.100}
|
|||||||
export PGUSER="postgres"
|
export PGUSER="postgres"
|
||||||
export PGPASSWORD=""
|
export PGPASSWORD=""
|
||||||
export PGDATABASE="booktown"
|
export PGDATABASE="booktown"
|
||||||
export PGPORT="5432"
|
export PGPORT="15432"
|
||||||
|
|
||||||
for i in {1..5}
|
for i in {1..5}
|
||||||
do
|
do
|
||||||
export PGVERSION="9.$i"
|
export PGVERSION="9.$i"
|
||||||
echo "Running tests against PostgreSQL v$PGVERSION"
|
echo "Running tests against PostgreSQL v$PGVERSION"
|
||||||
docker rm -f postgres || true
|
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
|
sleep 5
|
||||||
make test
|
make test
|
||||||
echo "----------"
|
echo "----------"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user