-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
25 lines (19 loc) · 896 Bytes
/
build.xml
File metadata and controls
25 lines (19 loc) · 896 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="dummy" default="build" basedir=".">
<target name="build" depends="prepare,phpunit" />
<target name="prepare" description="Prepares the build">
<delete dir="./logs/coverage" />
<delete file="./logs/logfile.xml" />
<mkdir dir="./logs" />
<exec executable="php" failonerror="true" dir=".">
<arg line="build.php --plugins=dummy" />
</exec>
<echo message="Logs directory cleared and build instance prepared." />
</target>
<target name="phpunit" description="Runs the PHPUnit tests">
<exec executable="phpunit" failonerror="true" dir="." />
<available file="./logs/logfile.xml" property="logfile.exists" />
<fail unless="logfile.exists" message="XML report processing files missing - PHPUnit hasn't exported the test results."/>
<echo message="PHPUnit tests completed." />
</target>
</project>