This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.xml
53 lines (47 loc) · 1.66 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
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<project name="PEAR2/Pyrus" default="build" basedir=".">
<target name="build" depends="checkphp,phar,phpt,php-documentor"/>
<target name="dist" depends="phar" />
<target name="checkphp">
<apply executable="php" failonerror="true">
<arg value="-l" />
<fileset dir="${basedir}/src">
<include name="**/*.php" />
</fileset>
</apply>
</target>
<target name="phpcs">
<exec executable="phpcs" dir="${basedir}" output="${basedir}/phpcs.xml">
<arg line="--report=checkstyle --standard=PEAR src"/>
</exec>
</target>
<target name="phar">
<exec executable="php" dir="${basedir}" failonerror="on">
<arg line="pyrus.phar make" />
</exec>
<exec executable="php" dir="${basedir}" failonerror="on">
<arg line="-dphar.readonly=0 pyrus.phar package --phar -o newpyrus.phar" />
</exec>
<exec executable="mv" dir="${basedir}" failonerror="on">
<arg line="newpyrus.phar pyrus.phar" />
</exec>
<exec executable="chmod" dir="${basedir}" failonerror="on">
<arg line="+x pyrus.phar" />
</exec>
</target>
<target name="checkout">
<exec executable="svn" dir="${basedir}">
<arg line="up" />
</exec>
</target>
<target name="phpt">
<exec executable="php" dir="${basedir}" failonerror="on">
<arg line="pyrus.phar run-phpt -m" />
</exec>
</target>
<target name="php-documentor">
<exec executable="phpdoc" dir="${basedir}/src">
<arg line="-ct type -ue on -t ${basedir}/docs -d ${basedir}/src -po PEAR2_Pyrus -ti 'Pyrus PEAR2 Installer API Documentation'"/>
</exec>
</target>
</project>