ldapsaisie/.gitlab-ci.yml

98 lines
2.2 KiB
YAML
Raw Normal View History

stages:
- tests
tests:bullseye:
image:
name: brenard/ldapsaisie:bullseye
2023-01-02 01:45:20 +01:00
entrypoint: [""]
2023-01-02 01:38:47 +01:00
stage: tests
rules:
- changes:
2023-05-24 18:30:02 +02:00
- src/**/*.php
script:
2023-01-11 19:09:23 +01:00
- rm -fr vendor
- composer install
- service slapd start
2023-01-11 19:09:23 +01:00
- >
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:
- tests-report-bullseye.xml
reports:
junit: tests-report-bullseye.xml
tests:buster:
image:
name: brenard/ldapsaisie:buster
entrypoint: [""]
stage: tests
rules:
- changes:
2023-05-24 18:30:02 +02:00
- src/**/*.php
script:
2023-01-11 19:09:23 +01:00
- 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
2023-01-11 19:09:23 +01:00
- >
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:
- tests-report-buster.xml
reports:
junit: tests-report-buster.xml
tests:stretch:
image:
name: brenard/ldapsaisie:stretch
entrypoint: [""]
stage: tests
rules:
- changes:
- src/*
script:
- cd /tmp/
- composer require overtrue/phplint --dev
- cd -
- rm -f .phplint-cache
- /tmp/vendor/bin/phplint src
tests:jessie:
image:
name: brenard/ldapsaisie:jessie
entrypoint: [""]
stage: tests
rules:
- changes:
2023-05-24 18:30:02 +02:00
- src/**/*.php
script:
- cd /tmp/
- composer require overtrue/phplint --dev
- cd -
- rm -f .phplint-cache
- /tmp/vendor/bin/phplint src
2023-05-24 18:30:41 +02:00
tests:doc:
image: registry.gitlab.com/pipeline-components/xmllint:latest
stage: tests
rules:
- changes:
- doc/*.docbook
- doc/*.xml
- doc/**/*.docbook
- doc/**/*.xml
script:
- xmllint --valid --noout doc/LdapSaisie.docbook