Skip to content

Commit

Permalink
test against docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Feb 28, 2014
1 parent f7c5013 commit a75be02
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions dockerprove
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

docker run -rm -p 3306:3306 -P \
-e MYSQL_DATABASE=docker \
-e MYSQL_USER=docker \
-e MYSQL_PASSWORD=docker \
-name mysql_test orchardup/mysql &

export DBIITEST_MYSQL_DSN='dbi:mysql:database=docker;host=127.0.0.1;port=3306'
export DBIITEST_MYSQL_PASSWORD=docker
export DBIITEST_MYSQL_USER=docker

docker run -rm -p 5432:5432 -P -name pg_test apalmer/postgres &

export DBIITEST_PG_DSN='dbi:Pg:database=postgres;host=127.0.0.1;port=5432'
export DBIITEST_PG_PASSWORD=postgres
export DBIITEST_PG_USER=postgres

# stupid databases
sleep 5

prove "$@"

docker stop mysql_test
docker stop pg_test

0 comments on commit a75be02

Please sign in to comment.