-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
30 lines (26 loc) · 956 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="php-stratum" default="build" basedir=".">
<target name="build">
<echo message="Noting to do."/>
</target>
<!-- Run composer update and executes various other updates -->
<target name="update">
<exec executable="composer" checkreturn="true" passthru="true">
<arg value="--ansi"/>
<arg value="update"/>
</exec>
<phing phingfile="build.xml" target="outdated" haltonfailure="true"/>
</target>
<!-- Show outdated packages -->
<target name="outdated">
<exec executable="composer" checkreturn="false" passthru="true">
<arg value="--ansi"/>
<arg value="outdated"/>
<arg value="--direct"/>
</exec>
</target>
<!-- Runs all unit tests -->
<target name="unit">
<exec executable="bin/phpunit" checkreturn="true" passthru="true"/>
</target>
</project>