-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
52 lines (45 loc) · 1.37 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Package" default="test">
<fileset id="php" dir=".">
<include name="src/**/*.php"/>
<include name="tests/**/*.php"/>
</fileset>
<target name="coding-standards">
<phpcodesniffer
standard="phpcs-ruleset.xml"
format="full"
allowedFileExtensions="php"
haltonerror="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>
<target name="githooks">
<copy file="contrib/pre-commit" todir=".git/hooks" />
</target>
</project>