-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
86 lines (77 loc) · 2.85 KB
/
Copy pathbuild.xml
File metadata and controls
86 lines (77 loc) · 2.85 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0" encoding="UTF-8"?>
<project name="FACT-Finder PHP Framework" default="build">
<property name="version" value="2.5.6" override="true" />
<property name="buildBaseDir" value="./build" override="true" />
<property name="packageName" value="FACTFinderPHPFramework" override="true" />
<property name="srcdir" value="${project.basedir}" override="true" />
<!-- ============================================ -->
<!-- Target: test -->
<!-- ============================================ -->
<target name="test">
<phplint haltonfailure="true" cachefile="./build/phplint.cache">
<fileset dir=".">
<include name="lib/**/*.php"/>
<include name="demo/**.php"/>
</fileset>
</phplint>
<phpunit bootstrap="tests/bootstrap.php" haltonerror="true" haltonfailure="true" printsummary="true">
<formatter todir="tests/reports" type="plain"/>
<batchtest>
<fileset dir="tests">
<include name="*Test.php"/>
</fileset>
</batchtest>
</phpunit>
</target>
<!-- ============================================ -->
<!-- Target: document -->
<!-- ============================================ -->
<target name="doc">
<phpdoc title="FACT-Finder PHP Framework 2.4"
destdir="doc\phpdoc"
sourcecode="false"
output="HTML:Smarty:PHP"
quiet="true">
<fileset dir="./lib">
<include name="FACTFinder*/**" />
</fileset>
<projdocfileset dir=".">
<include name="CHANGELOG" />
</projdocfileset>
</phpdoc>
</target>
<!-- ============================================ -->
<!-- Target: clean -->
<!-- ============================================ -->
<target name="clean">
<delete dir="${buildBaseDir}/${packageName}" includeemptydirs="true" verbose="false" failonerror="true" />
<delete file="${buildBaseDir}/${packageName}.${version}.zip" verbose="false" failonerror="true" />
<echo msg="cleaned up OK" />
</target>
<!-- ============================================ -->
<!-- Target: build -->
<!-- ============================================ -->
<target name="build">
<mkdir dir="${buildBaseDir}/${packageName}" />
<copy todir="${buildBaseDir}/${packageName}" >
<fileset dir=".">
<include name="demo/**" />
<include name="demo2/**" />
<include name="lib/**" />
<include name="resources/**" />
<include name="CHANGELOG.txt" />
</fileset>
</copy>
<copy todir="${buildBaseDir}/${packageName}" >
<fileset dir=".">
<include name="doc/**" />
</fileset>
</copy>
<zip destfile="${buildBaseDir}/${packageName}.${version}.zip">
<fileset dir="${buildBaseDir}/">
<include name="${packageName}/**" />
<exclude name="*" />
</fileset>
</zip>
</target>
</project>