forked from Happyr/GoogleApiBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
31 lines (25 loc) · 1.05 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="happyrecruiting" default="test">
<!-- Use this when you want to test the current code -->
<target name="test" depends="prepare,composer,phpunit"/>
<target name="phpunit" description="Run unit tests with PHPUnit">
<exec executable="phpunit" failonerror="true">
<arg line="-c ${basedir}/phpunit.xml.dist" />
</exec>
</target>
<!-- The composer does also clear the cache -->
<target name="composer" description="Update vendors">
<exec executable="composer" failonerror="true">
<arg value="update" />
<arg value="--working-dir" />
<arg path="${basedir}" />
</exec>
</target>
<target name="prepare" depends="clean" description="Prepare for build, create some folders">
<mkdir dir="${basedir}/build/logs"/>
</target>
<!-- Remove the logs and cache folders -->
<target name="clean" description="Cleanup remains from old build">
<delete dir="${basedir}/build/*"/>
</target>
</project>