Skip to content

Commit

Permalink
Added Coverage Reporting through php-coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackskyliner committed Jul 20, 2018
1 parent 939dc38 commit dbf42c4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .gitignore
@@ -1,4 +1,7 @@
/nbproject/private/
/cache/
/nbproject/
/debug/
/debug/
/build/
/composer.lock
/vendor/
14 changes: 12 additions & 2 deletions .travis.yml
Expand Up @@ -13,5 +13,15 @@ matrix:
dist: precise
allow_failures:
- php: hhvm
before_script:
- mkdir -p cache

install:
- composer install --no-interaction
script:
- mkdir -p cache
- mkdir -p build/logs
- php vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml

after_success:
- travis_retry php vendor/bin/php-coveralls
# or enable logging
- travis_retry php vendor/bin/php-coveralls -v
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -16,6 +16,7 @@
"classmap": ["classes/"]
},
"require-dev": {
"phpunit/phpunit": "^7.2"
"phpunit/phpunit": "^5.7",
"php-coveralls/php-coveralls": "^2.1"
}
}
7 changes: 6 additions & 1 deletion phpunit.xml
Expand Up @@ -5,4 +5,9 @@
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">classes/</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit dbf42c4

Please sign in to comment.