-
Notifications
You must be signed in to change notification settings - Fork 42
/
build.xml
27 lines (24 loc) · 930 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
24
25
26
27
<?xml version="1.0"?>
<project name="fxmlrpc" 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"/>
<arg value="--prefer-dist"/>
</exec>
<exec executable="npm" failonerror="true">
<arg value="install"/>
</exec>
</target>
<target name="phpunit">
<exec executable="phpunit" failonerror="true"/>
</target>
</project>