-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
66 lines (59 loc) · 2.15 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Blackprism CouchbaseODM" 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="phpcpd" />
<!--<phingcall target="test" />-->
</target>
<target name="phpcs">
<exec
command="./bin/phpcs
--standard='PSR2,vendor/object-calisthenics/phpcs-calisthenics-rules/src/ObjectCalisthenics/ruleset.xml'
src/Blackprism/CouchbaseODM"
passthru="true"
/>
</target>
<target name="phplint">
<phplint haltonfailure="true">
<fileset dir="src/Blackprism/CouchbaseODM">
<include name="**/*.php" />
</fileset>
</phplint>
</target>
<target name="phpmd">
<phpmd rulesets="codesize,unusedcode,naming,cleancode,controversial">
<fileset dir="src/Blackprism/CouchbaseODM">
<include name="**/*.php" />
</fileset>
</phpmd>
</target>
<target name="phpcpd">
<phpcpd>
<fileset dir="src/Blackprism/CouchbaseODM">
<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>