-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
36 lines (31 loc) · 1.21 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
35
36
<?xml version="1.0" encoding="UTF-8"?>
<project name="PlacesApi" default="build">
<target name="build" depends="if_windows,if_unix,vendors,phpspec" />
<target name="vendors" description="install vendors">
<exec executable="${composer.exec}" failonerror="true">
<arg value="install" />
</exec>
</target>
<target name="phpspec" description="Launch phpspec tests">
<exec executable="${phpspec.exec}" failonerror="true">
<arg value="run" />
<arg value="--format=pretty" />
</exec>
</target>
<target name="checkos">
<condition property="isWindows">
<os family="windows" />
</condition>
<condition property="isLinux">
<os family="unix" />
</condition>
</target>
<target name="if_windows" depends="checkos" if="isWindows">
<property name="composer.exec" value="composer.bat" />
<property name="phpspec.exec" value=".\vendor\bin\phpspec.bat" />
</target>
<target name="if_unix" depends="checkos" if="isLinux">
<property name="composer.exec" value="composer" />
<property name="phpspec.exec" value="./vendor/bin/phpspec" />
</target>
</project>