forked from lstrojny/functional-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
23 lines (20 loc) · 794 Bytes
/
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
<?xml version="1.0"?>
<project name="functional-php" default="build">
<target name="build" description="Run CI jobs" depends="clean,prepare,phpunit"/>
<target name="clean">
<delete dir="${basedir}/build/" includes="**/*" excludes="**/.gitkeep"/>
<mkdir dir="${basedir}/build/logs/"/>
<mkdir dir="${basedir}/build/coverage/"/>
</target>
<target name="prepare">
<get src="http://getcomposer.org/composer.phar" dest="build/composer.phar"/>
<exec executable="php" failonerror="true">
<arg value="build/composer.phar"/>
<arg value="install"/>
<arg value="--dev"/>
</exec>
</target>
<target name="phpunit">
<exec executable="phpunit" failonerror="true"/>
</target>
</project>