Deprecate Boot2Docker in favor of Docker for Mac for integration testing

This commit is contained in:
Dan Sosedoff 2016-11-03 20:05:50 -05:00
parent 812aff9686
commit 5b8937ac3a

View File

@ -1,8 +1,15 @@
#!/bin/bash #!/bin/bash
#
# Integartion testing with dockerized Postgres servers
#
# Boot2Docker is deprecated and no longer supported.
# Requires Docker for Mac to run on OSX.
# Install: https://docs.docker.com/engine/installation/mac/
#
set -e set -e
export PGHOST=${PGHOST:-192.168.99.100} export PGHOST=${PGHOST:-localhost}
export PGUSER="postgres" export PGUSER="postgres"
export PGPASSWORD="" export PGPASSWORD=""
export PGDATABASE="booktown" export PGDATABASE="booktown"
@ -11,10 +18,12 @@ export PGPORT="15432"
for i in {1..6} for i in {1..6}
do do
export PGVERSION="9.$i" export PGVERSION="9.$i"
echo "---------------- BEGIN TEST ----------------"
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 $PGPORT: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 "---------------- END TEST ------------------"
done done