mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-24 19:09:06 +01:00
CI: add tests step on Bookworm
This commit is contained in:
parent
1c42aa3a47
commit
59436c9fe4
1 changed files with 25 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue