mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
CI: configure tests for all supported Debian versions
This commit is contained in:
parent
89a13d86c6
commit
f4f39d967e
3 changed files with 58 additions and 6 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -3,4 +3,5 @@ upgrade.log
|
||||||
*~
|
*~
|
||||||
vendor
|
vendor
|
||||||
/src/local.*
|
/src/local.*
|
||||||
tests-report.xml
|
tests-report*.xml
|
||||||
|
.phplint-cache
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
stages:
|
stages:
|
||||||
- tests
|
- tests
|
||||||
|
|
||||||
tests:
|
tests:bullseye:
|
||||||
image:
|
image:
|
||||||
name: brenard/ldapsaisie:dev
|
name: brenard/ldapsaisie:bullseye
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
|
|
||||||
stage: tests
|
stage: tests
|
||||||
|
@ -13,10 +13,60 @@ tests:
|
||||||
script:
|
script:
|
||||||
- composer install
|
- composer install
|
||||||
- service slapd start
|
- 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:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- tests-report.xml
|
- tests-report-bullseye.xml
|
||||||
reports:
|
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
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require 'Net/LDAP2.php';
|
require 'Net/LDAP2.php';
|
||||||
|
require 'Net/FTP.php';
|
||||||
require 'Console/Table.php';
|
require 'Console/Table.php';
|
||||||
require 'Zxcvbn/autoload.php';
|
require 'Zxcvbn/autoload.php';
|
||||||
require '/usr/share/php/phpseclib/autoload.php';
|
require '/usr/share/php/phpseclib/autoload.php';
|
||||||
|
|
Loading…
Reference in a new issue