This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
55 lines (49 loc) · 1.53 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
<?xml version="1.0"?>
<project name="pathfinder" basedir="." default="security:check">
<import file="vendor/bitexpert/phing-securitychecker/build.xml" />
<target name="sniff">
<exec executable="./vendor/bin/phpcs"
passthru="true"
checkreturn="true">
<arg value="--standard=PSR2"/>
<arg path="${phing.dir}/src"/>
<arg path="${phing.dir}/tests"/>
</exec>
</target>
<target name="cs-fix">
<exec executable="./vendor/bin/phpcbf"
passthru="true"
checkreturn="false">
<arg path="${phing.dir}/src"/>
<arg path="${phing.dir}/tests"/>
</exec>
</target>
<target name="lint">
<exec executable="php"
passthru="true"
checkreturn="true">
<arg value="-l"/>
<arg path="${phing.dir}/src"/>
</exec>
<exec executable="php"
passthru="true"
checkreturn="true">
<arg value="-l"/>
<arg path="${phing.dir}/tests"/>
</exec>
</target>
<target name="unit">
<exec executable="./vendor/bin/phpunit"
passthru="true"
checkreturn="true">
</exec>
</target>
<target name="unit-with-coverage">
<exec executable="./vendor/bin/phpunit"
passthru="true"
checkreturn="true">
<arg value="--coverage-clover" />
<arg value="clover.xml"/>
</exec>
</target>
</project>