diff --git a/.gitignore b/.gitignore index 1df28f0..49fd402 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea/ /debian /build +/coverage diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 51495ee..aed4be7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/phpunit.xml b/phpunit.xml index 72f31b3..064e01c 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -15,4 +15,15 @@ test/php + + + library/Businessprocess + + library/Businessprocess/Director + + + library/Businessprocess/ProvidedHook + + +