forked from sebastianbergmann/state
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
executable file
·44 lines (37 loc) · 1.06 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
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8"?>
<project name="door" default="build">
<target name="build" depends="prepare,visualize,phpunit"/>
<target name="clean">
</target>
<target name="prepare" depends="clean,generate,phpab">
<mkdir dir="${basedir}/build/coverage"/>
</target>
<target name="generate">
<exec executable="${basedir}/generator/run.php" dir="${basedir}/examples" >
<arg line="_defs"/>
</exec>
</target>
<target name="phpab">
<exec executable="phpab">
<arg value="--output" />
<arg path="examples/autoload.php" />
<arg path="examples/" />
</exec>
<exec executable="phpab">
<arg value="--output" />
<arg path="generator/autoload.php" />
<arg path="generator/" />
</exec>
</target>
<target name="visualize">
<exec executable="${basedir}/generator/runViz.php" dir="${basedir}/examples" >
<arg line="_defs"/>
</exec>
</target>
<target name="phpunit">
<exec executable="phpunit" failonerror="true">
<arg value="--configuration"/>
<arg path="${basedir}/build/phpunit.xml"/>
</exec>
</target>
</project>