Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #32 from shochdoerfer/feature/coveralls
Browse files Browse the repository at this point in the history
Enable coveralls support
  • Loading branch information
shochdoerfer committed Mar 25, 2017
2 parents 373f64b + 137ff52 commit 74d4fd0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage_clover: clover.xml
json_path: coveralls-upload.json

10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ matrix:
include:
- php: 7.0
- php: 7.1
env:
- TEST_COVERAGE=true
install:
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev satooshi/php-coveralls ; fi

before_script:
- composer self-update
Expand All @@ -13,4 +17,8 @@ script:
- composer validate
- ./vendor/bin/phing security:check
- ./vendor/bin/phing sniff
- ./vendor/bin/phing unit
- if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/phing unit-with-coverage ; fi
- if [[ $TEST_COVERAGE != 'true' ]]; then ./vendor/bin/phing unit ; fi

after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/coveralls -v ; fi
9 changes: 9 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,13 @@
checkreturn="true">
</exec>
</target>

<target name="unit-with-coverage">
<exec executable="./vendor/bin/phpunit"
passthru="true"
checkreturn="true">
<arg value="--coverage-clover" />
<arg value="clover.xml"/>
</exec>
</target>
</project>

0 comments on commit 74d4fd0

Please sign in to comment.