This repository has been archived by the owner on Dec 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
57 lines (51 loc) · 1.52 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
<?xml version="1.0"?>
<project name="magerun2-password-normalizer" basedir="." default="sniff">
<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="infection">
<exec executable="./vendor/bin/infection"
passthru="true"
checkreturn="true">
</exec>
</target>
<target name="analyse">
<exec executable="./vendor/bin/phpstan"
passthru="true"
checkreturn="true">
<arg value="analyze"/>
</exec>
</target>
<target name="lint">
<phplint>
<fileset dir="${phing.dir}/src">
<include name="**/*.php"/>
</fileset>
</phplint>
<phplint>
<fileset dir="${phing.dir}/tests">
<include name="**/*.php"/>
</fileset>
</phplint>
</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>