forked from aweiland/pChart-php5
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
45 lines (39 loc) · 1.43 KB
/
build.xml
File metadata and controls
45 lines (39 loc) · 1.43 KB
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
<?xml version="1.0" ?>
<project name="pChart-PHP5" default="test">
<property name="tests.dir" value="tests" />
<property name="reports.dir" value="reports" />
<property name="documentation.dir" value="docs" />
<target name="clean">
<delete>
<fileset dir="${reports.dir}">
<include name="**/*" />
<exclude name="**/.gitignore" />
</fileset>
<fileset dir="${documentation.dir}">
<include name="**/*" />
<exclude name="**/.gitignore" />
</fileset>
</delete>
</target>
<target name="test" description="Run PHPUnit Tests">
<mkdir dir="${reports.dir}/phpunit" />
<phpunit haltonerror="true" haltonfailure="true" printsummary="true">
<batchtest>
<fileset dir="${tests.dir}">
<include name="**/*Test.php" />
</fileset>
</batchtest>
<formatter type="plain" usefile="false" />
<formatter type="xml" usefile="true" todir="${reports.dir}/phpunit" outfile="test-results.xml" />
</phpunit>
</target>
<target name="documentation">
<exec command="phpdoc -t ${project.basedir}/docs -ti 'pChart' -ue on -s -d ./"
dir="${project.basedir}/lib" />
</target>
<target name="phpmd">
<mkdir dir="${reports.dir}/phpmd" />
<exec command="phpmd lib xml unusedcode --reportfile ${reports.dir}/phpmd/unusedcode.xml" />
<exec command="phpmd lib/CSVImporter.php,lib/pData.php,lib/Color.php,lib/Point.php xml codesize --reportfile ${reports.dir}/phpmd/codesize.xml" />
</target>
</project>