-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
49 lines (39 loc) · 1.66 KB
/
build.xml
File metadata and controls
49 lines (39 loc) · 1.66 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8" ?>
<project name="Irisbox SDK" default="help" phingVersion="3">
<property name="irisbox.username" value="username"/>
<property name="irisbox.password" value="the-magic-key"/>
<property name="irisbox.application.name" value="my-application"/>
<property name="irisbox.form.name" value="my-form"/>
<target name="setup" depends="composer:validate,composer:install"/>
<target name="qa" depends="phpunit:check"/>
<target name="phpunit:check" description="Run PHPUnit tests">
<exec executable="vendor/bin/phpunit" checkreturn="true" passthru="true">
<env key="IRISBOX_USERNAME" value="${irisbox.username}"/>
<env key="IRISBOX_PASSWORD" value="${irisbox.password}"/>
<env key="IRISBOX_APPLICATION_NAME" value="${irisbox.application.name}"/>
<env key="IRISBOX_FORM_NAME" value="${irisbox.form.name}"/>
<env key="XDEBUG_MODE" value="coverage"/>
</exec>
</target>
<target name="composer:install" description="PHP dependencies">
<composer command="install">
<arg value="--no-interaction"/>
<arg value="--prefer-dist"/>
<arg value="--no-progress"/>
<arg value="--ansi"/>
</composer>
</target>
<target name="composer:validate" description="Validate composer.json">
<composer command="validate">
<arg value="--ansi"/>
</composer>
</target>
<target name="help">
<uptodate property="uptodate.visualizer" srcfile="build.xml" targetfile="build.svg"/>
<runtarget target="map"/>
<open path="build.svg"/>
</target>
<target name="map" unless="uptodate.visualizer" description="Create buildfile map">
<visualizer format="svg"/>
</target>
</project>