diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 947910d5..83255db0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,9 +11,15 @@ tests:bullseye: - changes: - src/* script: + - rm -fr vendor - composer install - service slapd start - - ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon --error-format=junit > tests-report-bullseye.xml + - > + if [ "$GITLAB_CI" == "true" ]; then + ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon --error-format=junit > tests-report-bullseye.xml + else + ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon + fi artifacts: when: always paths: @@ -31,9 +37,16 @@ tests:buster: - changes: - src/* script: + - rm -fr vendor - composer install - service slapd start - ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon --error-format=junit > tests-report-buster.xml + - > + if [ "$GITLAB_CI" == "true" ]; then + ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon --error-format=junit > tests-report-buster.xml + else + ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon + fi artifacts: when: always paths: