-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
46 lines (43 loc) · 1.72 KB
/
build.xml
File metadata and controls
46 lines (43 loc) · 1.72 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
<?xml version="1.0"?>
<project name="ELE" default="build">
<!--
The actual build targets have moved to subbuild.xml. This is a
wrapper that's independent of ant-helpers, calling composer on the
toplevel, but forwarding all other targets to the actual build
file in subbuild.xml.
-->
<condition property="root-composer-install.skip">
<uptodate targetfile=".stamp.root-composer-install" srcfile="composer.json" />
</condition>
<target name="root-composer-install"
unless="root-composer-install.skip"
description="Get root dependencies (ant-helpers, build colllectors etc.)">
<exec executable="composer">
<env key="COMPOSER" path="root-composer.json"/>
<arg value="install"/>
<arg value="--working-dir"/>
<arg path="${basedir}/"/>
</exec>
<touch file=".stamp.root-composer-install"/>
</target>
<macrodef name="sub">
<attribute name="target" default=""/>
<sequential>
<antcall target="root-composer-install"/>
<exec executable="ant" failonerror="true">
<arg value="-f"/>
<arg value="subbuild.xml"/>
<arg value="@{target}"/>
</exec>
</sequential>
</macrodef>
<target name="setup"><sub target="setup"/></target>
<target name="setup-ci"><sub target="setup-ci"/></target>
<target name="build"><sub target="build"/></target>
<target name="build-ci"><sub target="build-ci"/></target>
<target name="clean"><sub target="clean"/></target>
<target name="composer-update"><sub target="composer-update"/></target>
<target name="phpunit"><sub target="phpunit"/></target>
<target name="phplint"><sub target="phpunit"/></target>
<target name="phpdox"><sub target="phpunit"/></target>
</project>