1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-22 09:53:11 +01:00

travis: uses own databases.travis.ini

This commit is contained in:
David Grudl 2015-11-04 17:21:02 +01:00
parent 78d24a0e74
commit 5d44e55527
2 changed files with 47 additions and 1 deletions

View File

@ -24,7 +24,7 @@ before_script:
- travis_retry composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction
# Create databases.ini
- cp ./tests/databases.sample.ini ./tests/databases.ini
- cp ./tests/databases.travis.ini ./tests/databases.ini
# Create Postgre database
- psql -c 'CREATE DATABASE dibi_test' -U postgres

View File

@ -0,0 +1,46 @@
[sqlite] ; default
driver = sqlite3
database = :memory:
system = sqlite
[sqlite pdo]
driver = pdo
dsn = "sqlite::memory:"
system = sqlite
[mysql]
driver = mysql
host = 127.0.0.1
username = root
password =
charset = utf8
system = mysql
[mysql improved]
driver = mysqli
host = 127.0.0.1
username = root
password =
charset = utf8
system = mysql
[mysql pdo]
driver = pdo
dsn = "mysql:host=127.0.0.1"
username = root
password =
system = mysql
[postgre]
driver = postgre
host = 127.0.0.1
username = postgres
password =
system = postgre
[postgre pdo]
driver = pdo
dsn = "pgsql:host=127.0.0.1;dbname=dibi_test"
username = postgres
password =
system = postgre