mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Set APP_ENV env the right way.
This commit is contained in:
parent
2f9dfdedc0
commit
e6f003b3b2
1 changed files with 4 additions and 5 deletions
|
@ -4,8 +4,7 @@ services:
|
|||
- mysql
|
||||
|
||||
env:
|
||||
- SYMFONY_DEPRECATIONS_HELPER=disabled # Disable deprecation warnings
|
||||
- APP_ENV=test
|
||||
- SYMFONY_DEPRECATIONS_HELPER=disabled APP_ENV=test # Disable deprecation warnings
|
||||
|
||||
# Test for all supported PHP versions
|
||||
php:
|
||||
|
@ -21,9 +20,9 @@ install:
|
|||
# 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)
|
||||
- bin/console --env test doctrine:schema:drop --force
|
||||
- bin/console --env test doctrine:schema:update --force
|
||||
- bin/console --env test doctrine:fixtures:load -n
|
||||
- php bin/console --env test doctrine:schema:drop --force
|
||||
- php bin/console --env test doctrine:schema:update --force
|
||||
- php bin/console --env test doctrine:fixtures:load -n
|
||||
|
||||
script:
|
||||
- php bin/phpunit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue