From 59436c9fe4092477a4b00d1a803bb8b138a199a1 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 26 Oct 2023 11:44:47 +0200 Subject: [PATCH] CI: add tests step on Bookworm --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f4ceaf30..f214c154 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,31 @@ variables: DOC_REMOTE: https://gitlab-ci-token:${ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" +tests:bookworm: + image: + name: brenard/ldapsaisie:bookworm + entrypoint: [""] + stage: tests + rules: + - changes: + - src/**/*.php + script: + - rm -fr vendor + - composer install + - service slapd start + - > + if [ "$GITLAB_CI" == "true" ]; then + ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon --error-format=junit > tests-report-bookworm.xml + else + ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon + fi + artifacts: + when: always + paths: + - tests-report-bookworm.xml + reports: + junit: tests-report-bookworm.xml + tests:bullseye: image: name: brenard/ldapsaisie:bullseye