mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +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
|
- 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue