Set APP_ENV env the right way.

This commit is contained in:
Jan Böhmer 2019-10-20 15:33:43 +02:00
parent 2f9dfdedc0
commit e6f003b3b2

View file

@ -4,8 +4,7 @@ services:
- mysql - mysql
env: env:
- SYMFONY_DEPRECATIONS_HELPER=disabled # Disable deprecation warnings - SYMFONY_DEPRECATIONS_HELPER=disabled APP_ENV=test # Disable deprecation warnings
- APP_ENV=test
# Test for all supported PHP versions # Test for all supported PHP versions
php: php:
@ -21,9 +20,9 @@ install:
# Migration is just for testing if it work, it is overwritten immediately # 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:migrations:migrate -n
# Load fixtures (workaround https://github.com/doctrine/DoctrineFixturesBundle/issues/50) # Load fixtures (workaround https://github.com/doctrine/DoctrineFixturesBundle/issues/50)
- bin/console --env test doctrine:schema:drop --force - php bin/console --env test doctrine:schema:drop --force
- bin/console --env test doctrine:schema:update --force - php bin/console --env test doctrine:schema:update --force
- bin/console --env test doctrine:fixtures:load -n - php bin/console --env test doctrine:fixtures:load -n
script: script:
- php bin/phpunit - php bin/phpunit