Skip to content

Commit 9bdd325

Browse files
committed
Coveralls
1 parent 9ae5c89 commit 9bdd325

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

.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
@@ -17,6 +17,7 @@
1717
<property name="path.root" value="${project.basedir}"/>
1818
<property name="path.src" value="${path.root}/src"/>
1919
<property name="path.tests" value="${path.root}/tests"/>
20+
<property name="path.tests.coverage.clover" value="${path.build}/log/coverage/clover.xml"/>
2021
<property name="path.tests.temp" value="${path.tests}/temp"/>
2122
<property name="path.vendor" value="${path.root}/vendor"/>
2223

@@ -33,9 +34,24 @@
3334
create-dirs,
3435
phplint,
3536
cs,
36-
tests
37+
ci-tests
3738
"/>
3839

40+
<target name="ci-tests">
41+
<exec
42+
executable="${path.phpunit.executable}"
43+
logoutput="true"
44+
passthru="true"
45+
checkreturn="true"
46+
>
47+
<arg value="--configuration"/>
48+
<arg value="${path.phpunit.configuration}"/>
49+
<arg value="--coverage-clover"/>
50+
<arg value="${path.tests.coverage.clover}"/>
51+
<arg path="${path.tests}"/>
52+
</exec>
53+
</target>
54+
3955
<target name="composer" depends="composer-validate">
4056
<exec
4157
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)