This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
81 lines (73 loc) · 2.68 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
<?xml version="1.0" encoding="utf-8"?>
<project name="Library" default="check">
<target name="check" depends="lint, phpstan, phpcs, phpcbf, tests, tester-coverage"/>
<target name="ci" depends="check"/>
<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="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"/>
</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"/>
</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"/>
</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="tester-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="php"/>
<arg value="-d"/>
<arg value="extension=xdebug.so"/>
<arg value="-c"/>
<arg path="Tests/php.ini"/>
<arg path="Tests/"/>
<arg value="--coverage"/>
<arg value="tester-coverage.xml"/>
<arg value="--coverage-src"/>
<arg path="Core"/>
</exec>
</target>
</project>