1
0
mirror of https://github.com/dg/dibi.git synced 2025-07-31 19:30:30 +02:00
This commit is contained in:
David Grudl
2017-07-24 14:46:58 +02:00
parent ba927b4782
commit 55523f4ed8
3 changed files with 5 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ before_install:
- psql -c 'CREATE DATABASE dibi_test' -U postgres - psql -c 'CREATE DATABASE dibi_test' -U postgres
install: install:
- travis_retry composer install --no-interaction --prefer-dist - travis_retry composer install --no-progress --prefer-dist
script: script:
- vendor/bin/tester tests -s - vendor/bin/tester tests -s
@@ -29,9 +29,9 @@ jobs:
php: 7.1 php: 7.1
install: install:
# Install Nette Code Checker # Install Nette Code Checker
- travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-interaction - travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-progress
# Install Nette Coding Standard # Install Nette Coding Standard
- travis_retry composer create-project nette/coding-standard temp/coding-standard --no-interaction - travis_retry composer create-project nette/coding-standard temp/coding-standard --no-progress
script: script:
- php temp/code-checker/src/code-checker.php --short-arrays --strict-types - php temp/code-checker/src/code-checker.php --short-arrays --strict-types
- php temp/coding-standard/ecs check src tests examples --config temp/coding-standard/coding-standard-php71.neon - php temp/coding-standard/ecs check src tests examples --config temp/coding-standard/coding-standard-php71.neon

View File

@@ -77,7 +77,7 @@ try {
'driver' => 'odbc', 'driver' => 'odbc',
'username' => 'root', 'username' => 'root',
'password' => '***', 'password' => '***',
'dsn' => 'Driver={Microsoft Access Driver (*.mdb)};Dbq='.__DIR__.'/data/sample.mdb', 'dsn' => 'Driver={Microsoft Access Driver (*.mdb)};Dbq=' . __DIR__ . '/data/sample.mdb',
]); ]);
echo 'OK'; echo 'OK';
} catch (Dibi\Exception $e) { } catch (Dibi\Exception $e) {

View File

@@ -41,6 +41,7 @@ function substFallBack($expr)
} }
} }
// define callback // define callback
dibi::getSubstitutes()->setCallback('substFallBack'); dibi::getSubstitutes()->setCallback('substFallBack');