From 5c0f8dd31149565df126839779d4091f09c7b1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 20 Oct 2019 15:28:47 +0200 Subject: [PATCH] Drop database by hand before loading fixtures. --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b9b2b1b1..5f1b1e16 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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