Skip to content

Commit d00d7d8

Browse files
committed
Coveralls
1 parent efcebfe commit d00d7d8

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ install:
2626

2727
script:
2828
- bin/phing ci-build
29+
30+
after_success:
31+
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.0/coveralls.phar
32+
&& php coveralls.phar --verbose --config build/coveralls.yml
33+
|| true

build.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<property name="path.root" value="${project.basedir}"/>
1717
<property name="path.src" value="${path.root}/src"/>
1818
<property name="path.tests" value="${path.root}/tests"/>
19+
<property name="path.tests.coverage.clover" value="${path.build}/log/coverage/clover.xml"/>
1920
<property name="path.vendor" value="${path.root}/vendor"/>
2021

2122
<target name="build" depends="
@@ -29,9 +30,24 @@
2930
composer-validate,
3031
phplint,
3132
cs,
32-
tests
33+
ci-tests
3334
"/>
3435

36+
<target name="ci-tests">
37+
<exec
38+
executable="${path.phpunit.executable}"
39+
logoutput="true"
40+
passthru="true"
41+
checkreturn="true"
42+
>
43+
<arg value="--configuration"/>
44+
<arg value="${path.phpunit.configuration}"/>
45+
<arg value="--coverage-clover"/>
46+
<arg value="${path.tests.coverage.clover}"/>
47+
<arg path="${path.tests}"/>
48+
</exec>
49+
</target>
50+
3551
<target name="composer" depends="composer-validate">
3652
<exec
3753
executable="${path.composer.executable}"

build/coveralls.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage_clover: build/log/coverage/clover.xml
2+
json_path: build/log/coverage/coveralls-upload.json
3+
service_name: travis-ci

0 commit comments

Comments
 (0)