|
|
@@ -1,6 +1,7 @@
|
|
|
stages:
|
|
|
- build
|
|
|
- test
|
|
|
+ - analysis
|
|
|
|
|
|
variables:
|
|
|
APP_ENV: staging
|
|
|
@@ -36,6 +37,9 @@ unit:
|
|
|
image: ${CI_REGISTRY_IMAGE}:latest
|
|
|
stage: test
|
|
|
|
|
|
+ variables:
|
|
|
+ CI_DEBUG_TRACE: "true"
|
|
|
+
|
|
|
script:
|
|
|
- php vendor/phpunit/phpunit/phpunit --configuration phpunit.xml.dist --colors=never --no-interaction --testsuite=unit
|
|
|
#- php vendor/phpunit/phpunit/phpunit --configuration phpunit.xml.dist --colors=never --no-interaction --no-coverage --testsuite=application
|
|
|
@@ -55,6 +59,7 @@ unit:
|
|
|
|
|
|
static_analysis:
|
|
|
image: ${CI_REGISTRY_IMAGE}:latest
|
|
|
+ stage: analysis
|
|
|
script:
|
|
|
- php vendor/bin/phpstan analyse -c phpstan.neon.dist --error-format gitlab > phpstan.json # Display code quality in MR
|
|
|
- php vendor/bin/phpstan analyse -c phpstan.neon.dist
|
|
|
@@ -65,6 +70,7 @@ static_analysis:
|
|
|
|
|
|
code_style:
|
|
|
image: ${CI_REGISTRY_IMAGE}:latest
|
|
|
+ stage: analysis
|
|
|
script:
|
|
|
- php vendor/bin/php-cs-fixer check --config=.php-cs-fixer.dist.php
|
|
|
|