-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·86 lines (75 loc) · 2.7 KB
/
Copy pathbuild.xml
File metadata and controls
executable file
·86 lines (75 loc) · 2.7 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
<project name="JobQueue" default="build" basedir=".">
<property name="src" location="src"/>
<property name="tests" location="tests"/>
<property name="build" location="_build"/>
<property name="docs" location="_docs"/>
<property name="coverage" location="_coverage"/>
<target name="init">
<mkdir dir="${build}"/>
<mkdir dir="${docs}"/>
<mkdir dir="${coverage}"/>
</target>
<target name="sniff" description="Runs PHP_CodeSniffer">
<exec executable="phpcs" failonerror="true">
<arg value="-s"/>
<arg value="--standard=${basedir}/spriebsch.xml"/>
<arg value="src"/>
</exec>
<exec executable="phpcs" failonerror="true">
<arg value="-s"/>
<arg value="--standard=${basedir}/spriebsch.xml"/>
<arg value="tests"/>
</exec>
</target>
<target name="autoload" description="Builds the autoloaders">
<exec executable="phpab" failonerror="true">
<arg value="-o"/>
<arg value="${src}/Autoload.php"/>
<arg value="--indent"/>
<arg value='" "'/>
<arg value="-t"/>
<arg value="templates/autoload.php.tpl"/>
<arg value="${src}"/>
</exec>
<exec executable="phpab" failonerror="true">
<arg value="-o"/>
<arg value="${tests}/Autoload.php"/>
<arg value="--indent"/>
<arg value='" "'/>
<arg value="-t"/>
<arg value="templates/autoload.php.tpl"/>
<arg value="${tests}"/>
</exec>
</target>
<target name="test" depends="init, autoload">
<exec executable="phpunit" failonerror="true"/>
</target>
<target name="phar" depends="init">
<exec executable="php" failonerror="true">
<arg value="scripts/createPhar.php"/>
<arg value="${src}"/>
<arg value="${build}/${ant.project.name}.phar"/>
</exec>
</target>
<target name="doc" depends="init">
<exec executable="phpdoc" failonerror="true">
<arg value="-dn"/>
<arg value="JobQueue"/>
<arg value="-d"/>
<arg value="${src}"/>
<arg value="-t"/>
<arg value="${docs}"/>
<arg value="-o"/>
<arg value="HTML:frames:earthli"/>
<arg value="-i"/>
<arg value="Autoload.php"/>
</exec>
</target>
<target name="build" depends="clean, autoload, test, doc, phar">
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${docs}"/>
<delete dir="${coverage}"/>
</target>
</project>