-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
99 lines (84 loc) · 3.48 KB
/
Copy pathbuild.xml
File metadata and controls
99 lines (84 loc) · 3.48 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
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8"?>
<project name="Torii 2" default="test" basedir="./">
<!--
Import project specific settings.
-->
<property file="${basedir}/build.properties.local" />
<property file="${basedir}/build.properties" />
<!--
Import main target defintions (extension points)
-->
<import optional="true" file="${basedir}/ant/main.xml" />
<!--
Enable used modules
-->
<import optional="true" file="${basedir}/ant/modules/composer.xml" />
<!-- Once again somebody decided to break BC in PHPUnit like every half year – I am fed up with this bullshit -->
<!-- import optional="true" file="${basedir}/ant/modules/phpunit.xml" /-->
<import optional="true" file="${basedir}/ant/modules/checkstyle.xml" />
<import optional="true" file="${basedir}/ant/modules/pdepend.xml" />
<import optional="true" file="${basedir}/ant/modules/phpcpd.xml" />
<import optional="true" file="${basedir}/ant/modules/phpmd.xml" />
<import optional="true" file="${basedir}/ant/modules/dbdeploy.xml" />
<import optional="true" file="${basedir}/src/ant/serve.xml" />
<!--
Task group, which installs the build-commons, if they do not exist yet.
-->
<target name="-install:check">
<condition property="-install:dir-exists">
<available file="${basedir}/ant" type="dir"/>
</condition>
</target>
<target name="install" depends="-install:check" unless="-install:dir-exists">
<exec executable="git" failonerror="true" dir="${basedir}">
<arg value="submodule" />
<arg value="update" />
<arg value="--init" />
</exec>
<echo>Build-Commons submodule intialized. Please re-run the build.</echo>
<fail />
</target>
<target name="install-and-run" depends="install">
<antcall target="test" />
</target>
<!--
Import the build-commons framework.
-->
<target name="style">
<property name="bootstrap.basedir" value="${basedir}/src/library/twitter/bootstrap/twitter/bootstrap/" />
<copy
overwrite="true"
file="${basedir}/src/config/bootstrap.less"
tofile="${bootstrap.basedir}/less/variables.less" />
<exec executable="make" dir="${bootstrap.basedir}">
<arg value="-B" />
<arg value="build" />
<arg value="bootstrap" />
</exec>
<copy todir="${basedir}/src/css">
<fileset dir="${bootstrap.basedir}/bootstrap/css">
<include name="*.css" />
</fileset>
</copy>
<copy todir="${basedir}/src/images">
<fileset dir="${bootstrap.basedir}/bootstrap/img">
<include name="*.png" />
</fileset>
</copy>
<copy todir="${basedir}/src/js/vendor/bootstrap/">
<fileset dir="${bootstrap.basedir}/bootstrap/js">
<include name="*.js" />
</fileset>
</copy>
</target>
<target name="torii-deploy" extensionOf="-deploy:main~hook">
<!-- Not using sshexec, because it does not know / handle local SSH
configuration, and we probably cannot and do not want to duplicate
tunnel configuration etc.
-->
<exec executable="ssh">
<arg value="privat-web" />
<arg value="cd torii-portal.org && git pull && ant install && src/bin/deployAssets" />
</exec>
</target>
</project>