mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-24 04:44:35 +02:00
Drop database by hand before loading fixtures.
This commit is contained in:
parent
558ae5ba4b
commit
5c0f8dd311
1 changed files with 5 additions and 1 deletions
|
@ -18,8 +18,12 @@ php:
|
|||
install:
|
||||
- composer install
|
||||
- php bin/console --env test doctrine:database:create --if-not-exists -n
|
||||
# Migration is just for testing if it work, it is overwritten immediately
|
||||
- php bin/console --env test doctrine:migrations:migrate -n
|
||||
- php bin/console --env test doctrine:fixtures:load -n
|
||||
# Load fixtures (workaround https://github.com/doctrine/DoctrineFixturesBundle/issues/50)
|
||||
- bin/console --env test doctrine:schema:drop --force \
|
||||
&& bin/console --env test doctrine:schema:update --force \
|
||||
&& bin/console --env test doctrine:fixtures:load -n
|
||||
|
||||
script:
|
||||
- php bin/phpunit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue