Skip to content

Commit

Permalink
Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
VasekPurchart committed Jan 17, 2017
1 parent d699c3b commit d4050dc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ install:

script:
- bin/phing ci-build

after_success:
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.0/coveralls.phar
&& php coveralls.phar --verbose --config build/coveralls.yml
|| true
18 changes: 17 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<property name="path.root" value="${project.basedir}"/>
<property name="path.src" value="${path.root}/src"/>
<property name="path.tests" value="${path.root}/tests"/>
<property name="path.tests.coverage.clover" value="${path.build}/log/coverage/clover.xml"/>
<property name="path.vendor" value="${path.root}/vendor"/>

<target name="build" depends="
Expand All @@ -29,9 +30,24 @@
composer-validate,
phplint,
cs,
tests
ci-tests
"/>

<target name="ci-tests">
<exec
executable="${path.phpunit.executable}"
logoutput="true"
passthru="true"
checkreturn="true"
>
<arg value="--configuration"/>
<arg value="${path.phpunit.configuration}"/>
<arg value="--coverage-clover"/>
<arg value="${path.tests.coverage.clover}"/>
<arg path="${path.tests}"/>
</exec>
</target>

<target name="composer" depends="composer-validate">
<exec
executable="${path.composer.executable}"
Expand Down
3 changes: 3 additions & 0 deletions build/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage_clover: build/log/coverage/clover.xml
json_path: build/log/coverage/coveralls-upload.json
service_name: travis-ci

0 comments on commit d4050dc

Please sign in to comment.