Skip to content

Commit 669ec75

Browse files
committed
Add target install.
1 parent 923097d commit 669ec75

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

build.xml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,38 @@
11
<project name="PhpPlaisio" default="build" basedir=".">
2-
<!-- Run composer update and executes various other updates -->
3-
<target name="update">
4-
<exec command="composer update" checkreturn="true" passthru="true"/>
5-
<phing phingfile="build.xml" target="kernel" haltonfailure="true"/>
2+
<target name="kernel">
3+
<exec executable="bin/plaisio" checkreturn="true" passthru="true">
4+
<arg value="--ansi"/>
5+
<arg value="plaisio:kernel-properties"/>
6+
</exec>
7+
</target>
68

7-
<!-- Show outdated packages -->
8-
<exec executable="composer" checkreturn="true" passthru="true">
9+
<!-- Show outdated packages -->
10+
<target name="outdated">
11+
<exec executable="composer" checkreturn="false" passthru="true">
912
<arg value="--ansi"/>
1013
<arg value="outdated"/>
1114
<arg value="--direct"/>
1215
</exec>
1316
</target>
1417

15-
<target name="kernel">
16-
<exec executable="bin/plaisio" checkreturn="true" passthru="true">
18+
<!-- Updates dependencies -->
19+
<target name="update">
20+
<exec executable="composer" checkreturn="true" passthru="true">
1721
<arg value="--ansi"/>
18-
<arg value="plaisio:kernel-properties"/>
22+
<arg value="update"/>
23+
</exec>
24+
<phing phingfile="build.xml" target="kernel" haltonfailure="true"/>
25+
<phing phingfile="build.xml" target="outdated" haltonfailure="true"/>
26+
</target>
27+
28+
<!-- Install dependencies -->
29+
<target name="install">
30+
<exec executable="composer" checkreturn="true" passthru="true">
31+
<arg value="--ansi"/>
32+
<arg value="install"/>
1933
</exec>
34+
<phing phingfile="build.xml" target="kernel" haltonfailure="true"/>
35+
<phing phingfile="build.xml" target="outdated" haltonfailure="true"/>
2036
</target>
2137

2238
<!-- Runs all unit tests -->

0 commit comments

Comments
 (0)