-
Notifications
You must be signed in to change notification settings - Fork 27
/
build.xml
101 lines (86 loc) · 2.43 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0" encoding="UTF-8"?>
<project name="c6" default="build">
<!--
vim:sw=2:ts=2:sts=2:
-->
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
<target name="build" depends="vendor"/>
<target name="build-parallel" depends="vendor"/>
<!--
<target name="tools-parallel" description="Run tools in parallel">
<parallel threadCount="2">
<sequential>
<antcall target="pdepend"/>
<antcall target="phpmd-ci"/>
</sequential>
<antcall target="phpcpd"/>
<antcall target="phpcs-ci"/>
<antcall target="phploc"/>
<antcall target="phpdox"/>
</parallel>
</target>
-->
<target name="clean" description="Cleanup build artifacts">
<exec executable="./goenv_run" failonerror="true">
<arg value="make"/>
<arg value="clean"/>
</exec>
<delete dir="${basedir}/build/coverage"/>
</target>
<target name="cross-compile" description="Cross compile">
<exec executable="./goenv_run" failonerror="true">
<arg value="make"/>
<arg value="cross-compile"/>
</exec>
</target>
<target name="vendor" depends="clean" description="Prepare for build">
<exec executable="./goenv_run" failonerror="true">
<arg value="go"/>
<arg value="get"/>
<arg value="github.com/mitchellh/gox"/>
</exec>
<exec executable="./goenv_run" failonerror="true">
<arg value="make"/>
<arg value="vendor"/>
</exec>
</target>
<target name="test" description="Run Go tests">
<exec executable="./goenv_run" failonerror="true">
<arg value="make"/>
<arg value="test"/>
</exec>
</target>
<target name="cover" description="Run Go tests">
<exec executable="./goenv_run" failonerror="true">
<arg value="make"/>
<arg value="cover"/>
</exec>
</target>
<target name="benchcmp" description="Benchmark Compare">
<exec executable="./goenv_run" failonerror="true">
<arg value="make"/>
<arg value="benchcmp"/>
</exec>
</target>
<target name="benchviz" description="Benchmark in SVG">
<exec executable="./goenv_run" failonerror="true">
<arg value="make"/>
<arg value="benchviz"/>
</exec>
</target>
<!--
<target name="lint" description="Perform syntax check of sourcecode files">
<apply executable="php" failonerror="true">
<arg value="-l" />
<fileset dir="${basedir}/src">
<include name="**/*.php" />
<modified />
</fileset>
<fileset dir="${basedir}/tests">
<include name="**/*.php" />
<modified />
</fileset>
</apply>
</target>
-->
</project>