From 1e74f205e9b4574d6b93c2e712c783f5c0d1db34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 20 Oct 2019 15:50:57 +0200 Subject: [PATCH] Truncate groups and user table manually for travis. --- .travis.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4b31f79c..ba6cb11f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,11 +17,9 @@ 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 -# Load fixtures (workaround https://github.com/doctrine/DoctrineFixturesBundle/issues/50) - - php bin/console --env test doctrine:schema:drop --force - - php bin/console --env test doctrine:schema:update --force + # Load fixtures (we have to truncate database by ourselves or we get foreing key valiation errors + - php bin/console --env test doctrine:query:sql "SET foreign_key_checks = 0; TRUNCATE `groups`; TRUNCATE `users`;" - php bin/console --env test doctrine:fixtures:load -n script: