Use special config for docker tests

This commit is contained in:
Timothy Warren 2016-07-19 11:17:55 -04:00
parent 06ba85ca6a
commit a7df1a0d0b
2 changed files with 31 additions and 1 deletions

View File

@ -17,7 +17,8 @@ curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
chmod +x /usr/local/bin/phpunit
# Set up build config
mv "$DIR/../tests/settings.json.dist" "$DIR/../tests/settings.json"
rm "$DIR/../tests/settings.json.dist"
mv "$DIR/../tests/settings-ci.json" "$DIR/../tests/settings.json"
# Install mysql driver
# Here you can install any other extension that you need

29
tests/settings-ci.json Normal file
View File

@ -0,0 +1,29 @@
{
"mysql": {
"host":"mysql",
"database":"test",
"user":"test",
"name":"my",
"alias":"my",
"prefix":"create_",
"pass":""
},
"pgsql": {
"host":"postgres",
"database":"test",
"name":"pg",
"user":"test",
"pass":"test",
"prefix":"create_",
"port":5432
},
"oci": {
"host":"localhost",
"database":"query_test",
"name": "oci",
"user": "query_test",
"pass": "test",
"prefix": "create_",
"port":49161
}
}