forked from incubateind/idtcDay1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
35 lines (30 loc) · 1.24 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="docker-demo-app-tests" default="build">
<target name="build" depends="prepare,unit-tests"/>
<target name="clean" description="Cleanup build artifacts">
<delete dir="${basedir}/build/results/api"/>
<delete dir="${basedir}/build/results/code-browser"/>
<delete dir="${basedir}/build/results/coverage"/>
<delete dir="${basedir}/build/results/logs"/>
<delete dir="${basedir}/build/results/pdepend"/>
<delete dir="${basedir}/build/results/apigen"/>
</target>
<target name="prepare" depends="clean"
description="Prepare for build">
<mkdir dir="${basedir}/build/results/api"/>
<mkdir dir="${basedir}/build/results/code-browser"/>
<mkdir dir="${basedir}/build/results/coverage"/>
<mkdir dir="${basedir}/build/results/logs"/>
<mkdir dir="${basedir}/build/results/pdepend"/>
<mkdir dir="${basedir}/build/results/apigen"/>
<exec executable="/usr/local/bin/composer">
<arg value="install" />
</exec>
</target>
<target name="unit-tests" depends="prepare" description="Run unit tests with PHPUnit">
<exec executable="phpunit" failonerror="true">
<arg value="--configuration"/>
<arg path="phpunit.xml.dist"/>
</exec>
</target>
</project>