mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 13:17:58 +02:00
travis: uses own databases.travis.ini
This commit is contained in:
@@ -24,7 +24,7 @@ before_script:
|
|||||||
- travis_retry composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction
|
- travis_retry composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction
|
||||||
|
|
||||||
# Create databases.ini
|
# Create databases.ini
|
||||||
- cp ./tests/databases.sample.ini ./tests/databases.ini
|
- cp ./tests/databases.travis.ini ./tests/databases.ini
|
||||||
|
|
||||||
# Create Postgre database
|
# Create Postgre database
|
||||||
- psql -c 'CREATE DATABASE dibi_test' -U postgres
|
- psql -c 'CREATE DATABASE dibi_test' -U postgres
|
||||||
|
46
tests/databases.travis.ini
Normal file
46
tests/databases.travis.ini
Normal 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
|
Reference in New Issue
Block a user