CI: fix local execution problems

This commit is contained in:
Benjamin Renard 2023-01-11 19:09:23 +01:00
parent cbf1ff1769
commit e303706779

View file

@ -11,9 +11,15 @@ tests:bullseye:
- changes: - changes:
- src/* - src/*
script: script:
- rm -fr vendor
- composer install - composer install
- service slapd start - 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: artifacts:
when: always when: always
paths: paths:
@ -31,9 +37,16 @@ tests:buster:
- changes: - changes:
- src/* - src/*
script: script:
- rm -fr vendor
- composer install - composer install
- service slapd start - service slapd start
- ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon --error-format=junit > tests-report-buster.xml - ./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: artifacts:
when: always when: always
paths: paths: