Skip to content

Commit

Permalink
Try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Mar 22, 2023
1 parent d16a8ea commit b64c857
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yml
Expand Up @@ -132,7 +132,7 @@ jobs:
if: startsWith(matrix.db-image, 'mysql') || startsWith(matrix.db-image, 'mariadb')

- name: Update database tests (phpunit)
run: galette/vendor/bin/phpunit --test-suffix=.php --bootstrap phpunit/TestsBootstrap.php --no-coverage --process-isolation --testdox phpunit/GaletteUpdate/
run: UPDATE=UPDATE galette/vendor/bin/phpunit --test-suffix=.php --bootstrap phpunit/TestsBootstrap.php --no-coverage --process-isolation --testdox phpunit/GaletteUpdate/
if: matrix.coverage != 'xdebug'

- name: Update database tests
Expand Down
10 changes: 8 additions & 2 deletions phpunit/TestsBootstrap.php
Expand Up @@ -104,7 +104,13 @@
);
}

$titles = new \Galette\Repository\Titles($zdb);
$res = $titles->installInit($zdb);
$updateenv = getenv('UPDATE');
if (
$updateenv !== 'UPDATE'
) {
//do not initialize Ttiles on update tests
$titles = new \Galette\Repository\Titles($zdb);
$res = $titles->installInit($zdb);
}

require_once __DIR__ . '/GaletteTestCase.php';

0 comments on commit b64c857

Please sign in to comment.