Skip to content

Commit

Permalink
Use non-standart postgresql port for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sosedoff committed Jan 15, 2016
1 parent 9766bb2 commit 84f1bd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ install:
script:
- make build
- make test
- PGHOST=127.0.0.1 ./scripts/test_all.sh
- PGHOST=127.0.0.1 ./script/test_all.sh
4 changes: 2 additions & 2 deletions script/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "----------"
Expand Down

0 comments on commit 84f1bd9

Please sign in to comment.