forked from openphacts/OPS_LinkedDataApi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
32 lines (25 loc) · 1.09 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="utf-8"?>
<project name="puelia" default="all">
<property name="test-dir" location="tests" />
<property name="reports-dir" location="reports" />
<property name="test" value="**" />
<condition property="phpunit-exe" value="phpunit.bat">
<os family="windows" />
</condition>
<condition property="phpunit-exe" value="phpunit">
<os family="unix" />
</condition>
<target name="all" depends="unit-tests-with-coverage" />
<target name="unit-tests">
<echo message="Running puelia unit tests"/>
<exec dir="${test-dir}" executable="${phpunit-exe}" failonerror="true" >
<arg line="--verbose --log-xml ${reports-dir}/unittests/report.xml --filter ${test} puelia-runtests.php" />
</exec>
</target>
<target name="unit-tests-with-coverage">
<echo message="Running puelia unit tests with code coverage"/>
<exec dir="${test-dir}" executable="${phpunit-exe}" failonerror="true" >
<arg line="--verbose --log-xml ${reports-dir}/unittests/report.xml --coverage-html ${reports-dir}/coverage --filter ${test} puelia-runtests.php" />
</exec>
</target>
</project>