-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
40 lines (33 loc) · 1.21 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
<project name="apto" default="install" basedir=".">
<property name="root" location=""/>
<property name="build" location="cbuild"/>
<target name="builddir">
<mkdir dir="${build}"/>
</target>
<target name="configure" depends="builddir">
<exec dir="${build}" executable="cmake" failonerror="true">
<arg path="${root}"/>
</exec>
</target>
<target name="compile" depends="configure">
<exec dir="${build}" osfamily="unix" executable="make" failonerror="true"/>
</target>
<target name="install" depends="compile">
<exec dir="${build}" osfamily="unix" executable="make" failonerror="true">
<arg value="install"/>
</exec>
</target>
<target name="check-for-apto-test">
<available file="${build}/bin/apto-test" property="apto-test.built"/>
</target>
<target name="test" depends="check-for-apto-test" if="apto-test.built">
<chmod file="${build}/bin/apto-test" perm="ugo+rx"/>
<mkdir dir="${build}/reports"/>
<exec dir="${root}" osfamily="unix" executable="${build}/bin/apto-test" failonerror="false">
<arg value="--gtest_output=xml:${build}/reports/apto.xml"/>
</exec>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
</project>