-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
33 lines (29 loc) · 1.03 KB
/
build.xml
File metadata and controls
33 lines (29 loc) · 1.03 KB
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
<?xml version="1.0"?>
<project name="Sample project" basedir="/var/xinc/projects/Sample" default="build">
<property name="report.dir" value="${project.basedir}/report"/>
<target name="build" depends="tar, generate-report"></target>
<target name="prepare">
<mkdir dir="${report.dir}"/>
</target>
<target name="tar" depends="test">
<tar destfile="${project.basedir}/release-${xinc.buildlabel}.tar.gz" compression="gzip">
<fileset dir=".">
<include name="*" />
<exclude name="release-*.tar.gz" />
</fileset>
</tar>
</target>
<target name="test" depends="prepare">
<phpunit haltonfailure="true" printsummary="true" bootstrap="tests/bootstrap.php">
<batchtest>
<fileset dir="tests">
<include name="**/*Test.php"/>
</fileset>
</batchtest>
<formatter type="xml" todir="${report.dir}" outfile="logfile.xml"/>
</phpunit>
</target>
<target name="generate-report">
<phpunitreport infile="${report.dir}/logfile.xml" styledir="resources/xsl" todir="report" format="noframes"/>
</target>
</project>