forked from leogr/ZendSkeletonApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
31 lines (22 loc) · 876 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
28
29
30
31
<project name="skapp" default="build">
<target name="build"
depends="prepare,composer-install,phpunit" />
<target name="clean" description="Cleanup">
</target>
<target name="prepare" depends="clean" description="Prepare for build">
</target>
<target name="composer-download" description="Composer Download">
<exec executable="/bin/bash">
<arg value="-c" />
<arg value="curl -s https://getcomposer.org/installer | php" />
</exec>
</target>
<target name="composer-install" depends="composer-download" description="Composer install">
<exec executable="./composer.phar">
<arg value="update" />
</exec>
</target>
<target name="phpunit" description="Unit tests">
<exec executable="./vendor/bin/phpunit" failonerror="true"/>
</target>
</project>