diff --git a/.gitignore b/.gitignore index be74bb0a..6e45e56b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ upgrade.log *~ vendor /src/local.* -tests-report.xml +tests-report*.xml +.phplint-cache diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57189838..947910d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,9 @@ stages: - tests -tests: +tests:bullseye: image: - name: brenard/ldapsaisie:dev + name: brenard/ldapsaisie:bullseye entrypoint: [""] stage: tests @@ -13,10 +13,60 @@ tests: script: - composer install - service slapd start - - ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon --error-format=junit > tests-report.xml + - ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon --error-format=junit > tests-report-bullseye.xml artifacts: when: always paths: - - tests-report.xml + - tests-report-bullseye.xml reports: - junit: tests-report.xml + junit: tests-report-bullseye.xml + +tests:buster: + image: + name: brenard/ldapsaisie:buster + entrypoint: [""] + + stage: tests + rules: + - changes: + - src/* + script: + - composer install + - service slapd start + - ./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon --error-format=junit > tests-report-buster.xml + 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 diff --git a/.phpstan/init.php b/.phpstan/init.php index 73640957..ab435739 100644 --- a/.phpstan/init.php +++ b/.phpstan/init.php @@ -1,6 +1,7 @@