-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
71 lines (64 loc) · 2.27 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Blackprism Serializer" default="all">
<taskdef name="atoum" classpath="./vendor/atoum/atoum/resources/phing/" classname="AtoumTask"/>
<property name="fullpath" value="./" />
<resolvepath propertyName="fullpath" file="${fullpath}"/>
<target name="all">
<phingcall target="phpcs" />
<phingcall target="phplint" />
<phingcall target="phpmd" />
<phingcall target="test" />
</target>
<target name="phpcs">
<phpcodesniffer
standard="PSR2"
showSniffs="true"
showWarnings="true"
format="full"
haltonerror="true"
haltonwarning="true">
<fileset dir="src/Blackprism/Serializer">
<include name="**/*.php" />
</fileset>
<formatter type="full" outfile="php://stdout" />
</phpcodesniffer>
</target>
<target name="phplint">
<phplint haltonfailure="true">
<fileset dir="src/Blackprism/Serializer">
<include name="**/*.php" />
</fileset>
</phplint>
</target>
<target name="phpmd">
<phpmd rulesets="codesize,unusedcode,naming,cleancode,controversial">
<fileset dir="src/Blackprism/Serializer">
<include name="**/*.php" />
</fileset>
</phpmd>
</target>
<target name="phpcpd">
<phpcpd>
<fileset dir="src/Blackprism/Serializer">
<include name="**/*.php" />
</fileset>
</phpcpd>
</target>
<target name="test">
<atoum
atoumpharpath="./vendor/bin/atoum"
bootstrap="./vendor/autoload.php"
codecoverage="true"
codecoveragereportextensionpath="./tests/coverage/"
codecoveragereportextensionurl="file://${fullpath}/tests/coverage/index.html"
showcodecoverage="true"
showmissingcodecoverage="true"
showprogress="true"
showmemory="true"
showduration="true">
<fileset dir="./tests/units">
<include name="**/*.php" />
</fileset>
</atoum>
</target>
</project>