-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
45 lines (37 loc) · 1.3 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Unit training test" default="build" basedir=".">
<property name="basedir" value="${WORKSPACE}"/>
<target name="init">
<!-- Create the different build directories -->
<mkdir dir="${basedir}/build/logs" />
<mkdir dir="${basedir}/build/api" />
<mkdir dir="${basedir}/build/coverage" />
</target>
<target name="clean">
<!-- Delete build directories from the previous run -->
<delete>
<fileset dir="${basedir}/build/logs" includes="**.*" />
</delete>
<delete>
<fileset dir="${basedir}/build/api" includes="**.*" />
</delete>
<delete>
<fileset dir="${basedir}/build/coverage" includes="**.*" />
</delete>
</target>
<!-- Default target -->
<target name="build" depends="init,phpunit" />
<target name="phpunit">
<exec executable="/bin/bash">
<arg value="-c" />
<arg value="curl -s https://getcomposer.org/installer > composer_install" />
</exec>
<exec executable="php">
<arg line="composer_install" />
</exec>
<exec executable="php">
<arg line="composer.phar install --dev" />
</exec>
<exec executable="phpunit" dir="${basedir}" failonerror="off"></exec>
</target>
</project>