-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
64 lines (53 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
58
59
60
61
62
63
<?xml version="1.0" encoding="utf-8" ?>
<project name="jenkins_test" basedir="." default="all">
<property name="outputDir" value=".."/>
<target name="phpcpd">
<phpcpd minTokens="10">
<fileset dir="./phpfiles/">
<include name="**/**/*.php"/>
</fileset>
<formatter type="pmd"
outfile="cpd.xml"/>
</phpcpd>
</target>
<target name="phpmd">
<phpmd rulesets="ruleset.xml">
<fileset dir="./phpfiles">
<exclude name="exclude.php"/>
</fileset>
<formatter type="xml"
outfile="pmd.xml"/>
</phpmd>
</target>
<target name="phpunit">
<mkdir dir="clover" />
<coverage-setup database="${outputDir}/coverage.db">
<fileset dir="./phpfiles/">
<exclude name="**/*Test.php"/>
</fileset>
</coverage-setup>
<phpunit codecoverage="true">
<formatter type="xml" outfile="phpunit.xml"/>
<formatter type="clover" outfile="clover.xml"/>
<batchtest>
<fileset dir="./phpfiles/">
<include name="**/*Test.php"/>
</fileset>
</batchtest>
</phpunit>
<coverage-report outfile="clover.xml">
<report todir="clover" />
</coverage-report>
</target>
<target name="phpdoc">
<mkdir dir="phpdoc" />
<phpdoc title="API Documentation"
destdir="${outputDir}/phpdoc"
output="HTML:Smarty:PHP">
<fileset dir="./phpfiles">
</fileset>
</phpdoc>
</target>
<target name="all" depends="phpcpd,phpmd,phpunit,phpdoc">
</target>
</project>