forked from ZavenArra/lattice-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
87 lines (77 loc) · 3.25 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
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="latticesite" default="pull">
<target name="checkout">
<exec executable="git" failonerror="true">
<arg value="submodule"/>
<arg value="init"/>
</exec>
<exec executable="git" failonerror="true">
<arg value="submodule"/>
<arg value="update"/>
</exec>
<exec executable="git" dir="modules/lattice" failonerror="true">
<arg value="checkout"/>
<arg value="stable"/>
</exec>
<exec executable="git" dir="modules/lattice" failonerror="true">
<arg value="submodule"/>
<arg value="update"/>
<arg value="--recursive"/>
</exec>
<ant target="setup"/>
</target>
<target name="setup">
<chmod dir="application/cache" perm="777"/>
<chmod dir="application/logs" perm="777"/>
<mkdir dir="application/media"/>
<chmod dir="application/media" perm="777"/>
<mkdir dir="application/export"/>
<chmod dir="application/export" perm="777"/>
<mkdir dir="application/views/generated"/>
<chmod dir="application/views/generated" perm="777"/>
<mkdir dir="upload"/>
<chmod dir="upload" perm="777"/>
</target>
<target name="init">
<copy file="modules/database/config/database.php" tofile="application/config/database.php"/>
</target>
<target name="pull">
<exec executable="git" failonerror="true">
<arg value="pull"/>
</exec>
<exec executable="git" failonerror="true">
<arg value="submodule"/>
<arg value="update"/>
</exec>
<exec executable="git" dir="modules/lattice" failonerror="true">
<arg value="checkout"/>
<arg value="stable"/>
</exec>
<exec executable="git" dir="modules/lattice" failonerror="true">
<arg value="pull"/>
</exec>
<exec executable="git" dir="modules/lattice" failonerror="true">
<arg value="submodule"/>
<arg value="update"/>
</exec>
</target>
<target name="test">
<exec executable="phpunit" failonerror="true">
<arg value="--configuration=application/tests/phpunit.xml"/>
</exec>
</target>
<target name="testlattice">
<exec executable="phpunit" failonerror="true">
<arg value="--configuration=modules/lattice/devtools/tests/phpunit.xml"/>
</exec>
</target>
<target name="clean">
<exec executable="php" failonerror="true">
<arg value="index.php"/>
<arg value="--uri=builder/initializeSite/empty"/>
</exec>
</target>
<target name="onetest">
<exec name="phpunit --bootstrap testindex.php GraphTest lattice/lattice/devtools/tests/classes/GraphTest.php "/>
</target>
</project>