Skip to content

Commit

Permalink
Preparing for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lstrojny committed Nov 11, 2013
1 parent 9f570ef commit 267cb6e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build.xml
@@ -0,0 +1,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>

0 comments on commit 267cb6e

Please sign in to comment.