-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
34 lines (26 loc) · 1.22 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
33
34
<?xml version="1.0" encoding="utf-8" ?>
<project name="Describr" basedir="." default="default">
<target name="default" depends="test-php">
</target>
<target name="ci" depends="test">
</target>
<target name="test" depends="test-php,test-cs">
</target>
<target name="test-cs" description="Run PHPCodeSniffer. You must have the BoxUK coding standard installed: pear channel-discover pear.boxuk.com; pear install boxuk/codingstandards">
<mkdir dir="reports" />
<exec command="phpcs --standard=BoxUK --report=checkstyle lib > reports/checkstyle-result.xml" escape="false" />
</target>
<target name="test-php" description="Run tests">
<mkdir dir="log" />
<mkdir dir="tests/tmp" />
<exec command="phpunit --coverage-clover log/clover.xml --testdox --log-junit log/phpunit.xml tests/php/" passthru="true" checkreturn="true" />
</target>
<target name="pear-package">
<exec command="php package.php ${version} ${channel}"
passthru="true"
checkReturn="true" />
<exec command="pear package lib/package.xml"
passthru="true"
checkReturn="true" />
</target>
</project>