-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
34 lines (31 loc) · 1.25 KB
/
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
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<project name="PhpStratum" default="build" basedir=".">
<target name="build">
<echo message="noting to do."/>
</target>
<!-- Updates dependencies -->
<target name="update">
<exec executable="composer" checkreturn="true" passthru="true">
<arg value="--ansi"/>
<arg value="update"/>
</exec>
<!-- Show outdated packages -->
<exec executable="composer" checkreturn="true" passthru="true">
<arg value="--ansi"/>
<arg value="outdated"/>
<arg value="--direct"/>
</exec>
</target>
<!-- Runs all unit tests -->
<target name="unit">
<exec executable="bash" passthru="true" checkreturn="true">
<arg value="-e"/>
<arg value="-x"/>
<arg value="test/unit-test.sh"/>
</exec>
<delete file="test/etc/routines.json" quiet="true"/>
<move file="test/psql/rename" tofile="test/psql/ test_escape ' " @ $ ! ." overwrite="true" haltonerror="false"/>
<exec executable="bin/phpunit" passthru="true" checkreturn="true"/>
<move file="test/psql/ test_escape ' " @ $ ! ." tofile="test/psql/rename" overwrite="true"/>
</target>
</project>