-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
69 lines (51 loc) · 1.96 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="botobor" default="tests" basedir="./">
<property file="build.properties" />
<!-- ====================================================================================== -->
<target name="tests" description="Unit tests">
<phplint>
<fileset dir="src">
<include name="**" />
</fileset>
</phplint>
<mkdir dir="${logs.dir}" />
<exec
command="phpunit
--configuration ${project.basedir}/tests/phpunit/phpunit.xml
--log-junit ${logs.dir}/phpunit.xml
--coverage-clover ${logs.dir}/phpunit.coverage.xml
--coverage-html ${phpunit.coverage.html}"
checkreturn="true"
logoutput="true"
/>
</target>
<!-- ====================================================================================== -->
<target name="checkstyle" description="Check code style">
<!--
Check sources for coding standards
-->
<phpcodesniffer
standard="${phpcs.standard}"
haltonerror="false"
>
<formatter type="${phpcs.format}" outfile="${phpcs.output}" />
<fileset dir="src">
<include name="**" />
</fileset>
</phpcodesniffer>
</target>
<!-- ====================================================================================== -->
<target name="docs" description="Generate documentation">
<delete dir="${docs.dir}" includeemptydirs="true" failonerror="false" />
<mkdir dir="${docs.dir}" />
<phpdoc2
title="Botobor API"
destdir="${docs.dir}"
>
<fileset dir="src">
<include name="**/*.php" />
</fileset>
</phpdoc2>
</target>
<!-- ====================================================================================== -->
</project>