Adding Code-Coverage to the Friendica code-base (#5570)
* friendica-5568 Adding Code-Coverage to the Friendica code-base * Adding codecov.io-badge * removing badge for now
This commit is contained in:
parent
4a7e9fe96a
commit
30c87a47ff
2 changed files with 20 additions and 1 deletions
|
@ -22,4 +22,4 @@ before_script:
|
||||||
- mysql -utravis test < database.sql
|
- mysql -utravis test < database.sql
|
||||||
- echo "extension=redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
- echo "extension=redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||||
- echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
- echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||||
|
after_success: bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
19
phpunit.xml
19
phpunit.xml
|
@ -7,4 +7,23 @@
|
||||||
<directory>tests/</directory>
|
<directory>tests/</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
<!-- Filters for Code Coverage -->
|
||||||
|
<filter>
|
||||||
|
<whitelist>
|
||||||
|
<directory suffix=".php">.</directory>
|
||||||
|
<exclude>
|
||||||
|
<directory suffix=".php">config/</directory>
|
||||||
|
<directory suffix=".php">doc/</directory>
|
||||||
|
<directory suffix=".php">images/</directory>
|
||||||
|
<directory suffix=".php">library/</directory>
|
||||||
|
<directory suffix=".php">spec/</directory>
|
||||||
|
<directory suffix=".php">tests/</directory>
|
||||||
|
<directory suffix=".php">util/</directory>
|
||||||
|
<directory suffix=".php">view/</directory>
|
||||||
|
</exclude>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
|
<logging>
|
||||||
|
<log type="coverage-clover" target="clover.xml" />
|
||||||
|
</logging>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
Loading…
Reference in a new issue