-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
40 lines (38 loc) · 1.81 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
<project name="Beatrix" default="build" basedir=".">
<property name="phar.output" value="build/beatrix.phar"/>
<target name="build" depends="tests">
<echo>Starting phar build</echo>
<pharpackage basedir="." destfile="${phar.output}" stub="build/stub.php">
<fileset dir=".">
<include name="src/**"/>
<include name="templates/**"/>
<include name="vendor/autoload.php"/>
<include name="vendor/composer/**"/>
<include name="vendor/slim/slim/Slim/**"/>
<include name="vendor/illuminate/support/Illuminate/Support/**/*.php"/>
<include name="vendor/league/plates/src/**"/>
<include name="vendor/league/url/src/**"/>
<include name="vendor/true/punycode/src/**"/>
<include name="vendor/siriusphp/validation/src/**"/>
<include name="vendor/suin/php-rss-writer/Source/**"/>
<include name="vendor/intervention/image/src/**"/>
<include name="vendor/siriusphp/validation/autoload.php"/>
<include name="vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php"/>
</fileset>
</pharpackage>
</target>
<target name="tests">
<phpunit pharlocation="phpunit.phar" configuration="unit.phpunit.xml"
haltonfailure="true" processisolation="true">
<formatter type="summary" usefile="false"/>
<batchtest>
<fileset dir="tests/unit">
<include name="**/*Test.php"/>
</fileset>
</batchtest>
</phpunit>
</target>
<target name="after_pack">
<exec command="php phpunit.phar -c after_pack.phpunit.xml" passthru="true" checkreturn="true"/>
</target>
</project>