forked from contao/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
62 lines (55 loc) · 2.14 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
<?xml version="1.0"?>
<project name="Contao Open Source CMS" default="build" basedir=".">
<exec executable="system/bin/version" outputProperty="version" />
<target name="build" depends="clone, update, purge, archive, cleanup">
<echo message="Contao ${version} build complete" />
</target>
<target name="clone">
<exec executable="git">
<arg value="clone" />
<arg value="." />
<arg value="contao-${version}" />
</exec>
<exec executable="git" dir="contao-${version}" failonerror="true">
<arg value="checkout" />
<arg value="${version}" />
<arg value="--quiet" />
</exec>
<exec executable="git" dir="contao-${version}">
<arg value="reset" />
<arg value="--hard" />
</exec>
</target>
<target name="update">
<exec executable="composer" dir="contao-${version}" failonerror="true">
<arg value="install" />
<arg value="--prefer-dist" />
</exec>
</target>
<target name="purge">
<delete dir="contao-${version}/.tx" />
<delete dir="contao-${version}/.git" />
<delete dir="contao-${version}/vendor/leafo/lessphp/site" />
<delete dir="contao-${version}/vendor/leafo/scssphp/tests" />
<delete dir="contao-${version}/vendor/leafo/scssphp/site" />
<delete dir="contao-${version}/vendor/simplepie/simplepie/demo" />
<delete dir="contao-${version}/vendor/simplepie/simplepie/tests" />
<delete dir="contao-${version}/vendor/swiftmailer/swiftmailer/test-suite" />
<delete dir="contao-${version}/vendor/swiftmailer/swiftmailer/tests" />
</target>
<target name="archive">
<zip destfile="contao-${version}.zip" basedir="contao-${version}" />
<tar destfile="contao-${version}.tar.gz" basedir="contao-${version}" compression="gzip" />
</target>
<target name="cleanup">
<delete dir="contao-${version}" />
</target>
<target name="phpdoc">
<exec executable="phpdoc.php">
<arg value="--title=Contao Open Source CMS" />
<arg value="--target=../api" />
<arg value="--directory=system/modules/core/library,system/modules/*/models" />
<arg value="--template=responsive-contao" />
</exec>
</target>
</project>