-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
63 lines (55 loc) · 1.77 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
61
62
63
<?xml version="1.0" encoding="UTF-8"?>
<project name="search-v3" default="test">
<fileset id="php" dir="./">
<include name="**/*.php"/>
<exclude name="vendor/"/>
</fileset>
<target name="test">
<phingcall target="composer-validate"/>
<phingcall target="lint"/>
<phingcall target="unit-tests" />
<phingcall target="coding-standards"/>
</target>
<target name="composer-validate">
<exec command="composer validate" passthru="true" />
</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="coding-standards">
<exec command="vendor/bin/phpcs"
passthru="true"/>
<phpcodesniffer
standard="phpcs-ruleset.xml"
format="full"
allowedFileExtensions="php"
haltonerror="true"
showWarnings="true">
<fileset refid="php"/>
</phpcodesniffer>
</target>
<target name="phpcbf">
<exec command="vendor/bin/phpcbf test --standard=phpcs-ruleset.xml"
passthru="true"/>
<exec command="vendor/bin/phpcbf src --standard=phpcs-ruleset.xml"
passthru="true"/>
</target>
<target name="report-to-coveralls">
<exec
command="./vendor/bin/coveralls -v"
passthru="true"
checkreturn="true" />
</target>
</project>