Skip to content

Commit

Permalink
v22.2.1 SQLIte tests are not working with current setup, because of b…
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-matvejev committed Jul 24, 2016
1 parent f6268cb commit b631c7f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -5,7 +5,8 @@ php:
- "7.1"

env:
- DATABASE_ENGINE=pdo_sqlite DATABASE_PATH = %kernel.cache_dir%/sqlite.db.cache
# doctrine dabatase abstract layer has bug: https://github.com/doctrine/dbal/pull/2402
# - DATABASE_ENGINE=pdo_sqlite DATABASE_PATH = %kernel.cache_dir%/sqlite.db.cache
- DATABASE_ENGINE=pdo_mysql DATABASE_PORT=3306
- DATABASE_ENGINE=pdo_pgsql DATABASE_PORT=5432 DATABASE_USER=postgres

Expand Down
15 changes: 10 additions & 5 deletions tests/shared-environment/IntegrationTestSuite.php
Expand Up @@ -71,13 +71,18 @@ public static function setUpBeforeClass()
static::$doctrine = static::$container->get('doctrine');
static::$om = static::$doctrine->getManager();

/**
* SQLite is not supported yet
* @link https://github.com/doctrine/dbal/pull/2402
*/
$commands = [
/** reset database */
'doctrine:database:drop' => ['--force' => true, '--if-exists' => true],
'doctrine:database:create' => [],
/** keep database schema up-to-date */
/** create test database */
'doctrine:database:create' => ['--if-not-exists' => true],
/** reset test database schema */
'doctrine:schema:drop' => ['--full-database' => true, '--force' => true],
/** flush test database schema */
'doctrine:migrations:migrate' => [],
/** seed database with core data */
/** seed test database with core data */
'doctrine:fixtures:load' => []
];

Expand Down

0 comments on commit b631c7f

Please sign in to comment.