-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
60 lines (53 loc) · 1.63 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<project name="Package" default="test">
<fileset id="php" dir=".">
<include name="lib/**/*.php"/>
<include name="tests/**/*.php"/>
</fileset>
<target name="coding-standards">
<phpcodesniffer
standard="phpcs-ruleset.xml"
format="full"
allowedFileExtensions="php"
haltonerror="true"
showWarnings="true">
<fileset refid="php"/>
</phpcodesniffer>
</target>
<target name="coding-standards-strict">
<phpcodesniffer
standard="phpcs-ruleset.xml"
format="full"
allowedFileExtensions="php"
haltonerror="true"
haltonwarning="true">
<fileset refid="php"/>
</phpcodesniffer>
</target>
<target name="lint">
<phplint>
<fileset refid="php"/>
</phplint>
</target>
<!--
The PHPUnit task of Phing does not support white-lists for code
coverage. Therefore we use the exec task instead.
-->
<target name="unit-tests">
<exec
command="./vendor/bin/phpunit"
checkreturn="true"
passthru="true"/>
</target>
<target name="test">
<phingcall target="lint"/>
<phingcall target="unit-tests"/>
<phingcall target="coding-standards"/>
</target>
<target name="report-to-coveralls">
<exec
command="./vendor/bin/coveralls -v"
passthru="true"
checkreturn="true" />
</target>
</project>