gitlab-ci: blame, coverage

This commit is contained in:
Thomas Gelf 2017-01-10 18:17:06 +01:00
parent 32fe94c18d
commit d464a4a746
3 changed files with 19 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.idea/
/debian
/build
/coverage

View file

@ -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

View file

@ -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>