-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
32 lines (25 loc) · 962 Bytes
/
Copy pathbuild.xml
File metadata and controls
32 lines (25 loc) · 962 Bytes
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="EZlanguage" default="build">
<property name="workspace" value="${basedir}" />
<property name="sourcedir" value="${basedir}/src" />
<property name="builddir" value="${workspace}/app/build" />
<target name="build" depends="prepare,composer,phpunit"/>
<target name="clean" description="Cleanup build artifacts">
<delete dir="${builddir}/logs"/>
<delete dir="${builddir}/docs/*"/>
</target>
<target name="prepare" depends="clean" description="Prepare for build">
<mkdir dir="${builddir}/logs"/>
</target>
<target name="composer" description="Installing composer dependencies">
<exec executable="composer" failonerror="true">
<arg value="install" />
</exec>
</target>
<target name="phpunit" description="Run unit tests with PHPUnit">
<exec executable="phpunit" failonerror="true">
<arg value="-c" />
<arg path="${basedir}/app/phpunit.xml" />
</exec>
</target>
</project>