mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
85 lines
2 KiB
YAML
85 lines
2 KiB
YAML
stages:
|
|
- tests
|
|
|
|
tests:bullseye:
|
|
image:
|
|
name: brenard/ldapsaisie:bullseye
|
|
entrypoint: [""]
|
|
|
|
stage: tests
|
|
rules:
|
|
- changes:
|
|
- src/*
|
|
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-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:
|
|
- 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:
|
|
- 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:
|
|
- src/*
|
|
script:
|
|
- cd /tmp/
|
|
- composer require overtrue/phplint --dev
|
|
- cd -
|
|
- rm -f .phplint-cache
|
|
- /tmp/vendor/bin/phplint src
|