-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
58 lines (48 loc) · 1.77 KB
/
build.xml
File metadata and controls
58 lines (48 loc) · 1.77 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
<?xml version="1.0"?>
<project name="Norex Core Web Development CMS" default="build" basedir=".">
<property name="src" value="." />
<property name="buildtools" value="${basedir}/buildtools" />
<property name="javascript" value="${basedir}/js" />
<property name="docs" value="${buildtools}/api" />
<property name="logs" value="${buildtools}/logs" />
<target name="prepare">
<!--
<chmod perm="777" dir="${basedir}/templates_c" />
<chmod perm="777" dir="${basedir}/js/cache" />
-->
</target>
<target name="checkout">
<exec executable="svn" dir="${src}/">
<arg line="up" />
</exec>
<exec executable="git" dir="${buildtools}/prototype">
<arg line="pull" />
</exec>
</target>
<target name="deploy" depends="prepare">
<exec executable="rake" dir="${buildtools}/prototype">
<arg line="dist" />
</exec>
<copy file="${buildtools}/prototype/dist/prototype.js" tofile="${javascript}/prototype.js"/>
</target>
<target name="build" depends="prepare,deploy,phpunit">
<buildnumber file="${basedir}/include/build.number"/>
</target>
<target name="php-documentor" depends="prepare">
<mkdir dir="${docs}" />
<exec executable="phpdoc" dir="${basedir}/source"> <arg line="-ct type -ue on -t ${basedir}/build/api -tb /PATH/TO/YOUR/PHPUC/DATA/phpdoc -o HTML:Phpuc:phpuc -d src/"/> </exec>
</target>
<target name="phpunit" depends="prepare">
<mkdir dir="${logs}" />
<mkdir dir="${buildtools}/coverage" />
<exec executable="php" dir="${basedir}/" failonerror="true">
<arg line="bin/phpunit testSuite ${buildtools}/test/testSuite.php" />
</exec>
</target>
<target name="clean">
<delete dir="${docs}" />
<delete dir="${dist}" />
<delete dir="${logs}" />
<delete dir="${buildtools}/coverage" />
</target>
</project>