This repository has been archived by the owner on Nov 8, 2020. It is now read-only.
/
build.xml
90 lines (81 loc) · 2.39 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0" encoding="utf-8"?>
<project name="Library" default="check">
<target name="check" depends="lint, phpcpd, phpstan, phpcs, tests"/>
<target name="ci" depends="check, coverage"/>
<target name="lint">
<exec executable="vendor/bin/parallel-lint" logoutput="true" passthru="true" checkreturn="true">
<arg value="-e"/>
<arg value="php,phpt"/>
<arg path="Core"/>
<arg path="Tests"/>
</exec>
</target>
<target name="phpcpd">
<exec executable="vendor/bin/phpcpd" logoutput="true" passthru="true" checkreturn="true">
<arg value="--exclude"/>
<arg value="Form"/>
<arg path="Core"/>
</exec>
</target>
<target name="phpstan">
<exec executable="vendor/bin/phpstan" logoutput="true" passthru="true" checkreturn="true">
<arg value="analyse"/>
<arg value="-l"/>
<arg value="7"/>
<arg value="-c"/>
<arg path="phpstan.neon"/>
<arg path="Core"/>
<arg path="Tests"/>
</exec>
</target>
<target name="phpcs">
<exec executable="vendor/bin/phpcs" logoutput="true" passthru="true" checkreturn="true">
<arg value="--standard=ruleset.xml"/>
<arg value="--extensions=php,phpt"/>
<arg value="--encoding=utf-8"/>
<arg value="--tab-width=4"/>
<arg value="-sp"/>
<arg path="Core"/>
<arg path="Tests"/>
</exec>
</target>
<target name="phpcbf">
<exec executable="vendor/bin/phpcbf" logoutput="true" passthru="true" checkreturn="true">
<arg value="--standard=ruleset.xml"/>
<arg value="--extensions=php,phpt"/>
<arg value="--encoding=utf-8"/>
<arg value="--tab-width=4"/>
<arg value="-sp"/>
<arg path="Core"/>
<arg path="Tests"/>
</exec>
</target>
<target name="tests">
<exec executable="vendor/bin/tester" logoutput="true" passthru="true" checkreturn="true">
<arg value="-o"/>
<arg value="console"/>
<arg value="-s"/>
<arg value="-p"/>
<arg value="php"/>
<arg value="-c"/>
<arg path="Tests/php.ini"/>
<arg path="Tests/"/>
</exec>
</target>
<target name="coverage">
<exec executable="vendor/bin/tester" logoutput="true" passthru="true" checkreturn="true">
<arg value="-o"/>
<arg value="console"/>
<arg value="-s"/>
<arg value="-p"/>
<arg value="phpdbg"/>
<arg value="-c"/>
<arg path="Tests/php.ini"/>
<arg path="Tests/"/>
<arg value="--coverage"/>
<arg value="coverage.xml"/>
<arg value="--coverage-src"/>
<arg path="Core/"/>
</exec>
</target>
</project>