-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
43 lines (43 loc) · 1.2 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="vtcodecamp.org" default="build" basedir=".">
<property file="build.properties" />
<target name="clean">
<delete dir="vendor" />
</target>
<target name="prepare">
</target>
<target name="test">
<coverage-setup database="./reports/coverage.db">
<fileset dir="./src">
<include name="**/*.php"/>
</fileset>
</coverage-setup>
<phpunit
bootstrap="./tests/bootstrap.php"
codecoverage="true"
haltonerror="false"
>
<formatter todir="./reports" type="xml" />
<batchtest>
<fileset dir="./tests">
<include name="**/*Test*.php" />
</fileset>
</batchtest>
</phpunit>
<phpunitreport
infile="./reports/testsuites.xml"
todir="./reports/tests"
/>
<coverage-report outfile="./reports/coverage.xml">
<report todir="./reports/coverage" />
</coverage-report>
</target>
<target name="build">
<echo msg="Building dependencies through Composer..." />
<exec command="php composer.phar install" logoutput="true" checkreturn="true" />
</target>
<target name="release">
</target>
<target name="run">
</target>
</project>