]> git.mxchange.org Git - friendica.git/commitdiff
Adding Code-Coverage to the Friendica code-base (#5570)
authorPhilipp <admin+Github@philipp.info>
Wed, 8 Aug 2018 09:43:06 +0000 (11:43 +0200)
committerHypolite Petovan <mrpetovan@eml.cc>
Wed, 8 Aug 2018 09:43:06 +0000 (11:43 +0200)
* friendica-5568 Adding Code-Coverage to the Friendica code-base

* Adding codecov.io-badge

* removing badge for now

.travis.yml
phpunit.xml

index 6d133a0b4a641e3cc40b90c76f667383ea455e44..bb8b11311263228bb56cf05403b0325bfaf78a3d 100644 (file)
@@ -22,4 +22,4 @@ before_script:
  - mysql -utravis test < database.sql
  - echo "extension=redis.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)
index b6f6247f67ddbfb7fb038c7e13ada420982d8b3f..9ed293b6314c4e2da2f1b30f0d3330477aca5a68 100644 (file)
@@ -7,4 +7,23 @@
             <directory>tests/</directory>
         </testsuite>
     </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>