mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-10 06:23:05 -05:00
gitlab-ci: blame, coverage
This commit is contained in:
parent
32fe94c18d
commit
d464a4a746
3 changed files with 19 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
.idea/
|
||||
/debian
|
||||
/build
|
||||
/coverage
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ PSR2 CS Test:
|
|||
tags:
|
||||
- xenial
|
||||
script:
|
||||
- phpcs -p --standard=PSR2 --extensions=php --encoding=utf-8 -w -s library/Businessprocess/ application/ configuration.php run.php test
|
||||
- phpcs --report-width=auto --report-full --report-gitblame --report-summary -p --standard=PSR2 --extensions=php --encoding=utf-8 -w -s library/Businessprocess/ application/ configuration.php run.php test
|
||||
|
||||
Ubuntu Xenial:
|
||||
stage: Unit-Tests
|
||||
|
|
@ -20,7 +20,12 @@ Ubuntu Xenial:
|
|||
- xenial
|
||||
- businessprocess
|
||||
script:
|
||||
- phpunit --testdox || phpunit --verbose
|
||||
- phpunit --testdox --coverage-html=coverage || phpunit --verbose
|
||||
artifacts:
|
||||
expire_in: 1 week
|
||||
name: code-coverage
|
||||
paths:
|
||||
- coverage/*
|
||||
|
||||
Debian Jessie:
|
||||
stage: Unit-Tests
|
||||
|
|
|
|||
11
phpunit.xml
11
phpunit.xml
|
|
@ -15,4 +15,15 @@
|
|||
<directory suffix=".php">test/php</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">library/Businessprocess</directory>
|
||||
<exclude>
|
||||
<directory suffix=".php">library/Businessprocess/Director</directory>
|
||||
</exclude>
|
||||
<exclude>
|
||||
<directory suffix=".php">library/Businessprocess/ProvidedHook</directory>
|
||||
</exclude>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
|
|
|
|||
Loading…
Reference in a new issue