-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |