This repository was archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.xml
48 lines (42 loc) · 1.52 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Emma" default="main" description="Emma API wrapper">
<property name="message" value="Phing Running..."/>
<property name="php_bin_path" value="/usr/bin/" />
<!-- Default target - PHP Lint -->
<target name="main">
<phplint>
<fileset dir="src">
<include name="*.php"/>
</fileset>
</phplint>
</target>
<!-- PHP Code Sniffer -->
<target name="phpcs" description="PHP Code Sniffer">
<phpcodesniffer standard="PEAR" format="summary">
<fileset dir="src">
<include name="*.php" />
</fileset>
</phpcodesniffer>
</target>
<!-- PHPUnit. Includes Code Coverage -->
<!-- Not working properly -->
<target name="phpunit" description="PHP Unit Testing">
<phpunit pharlocation="/usr/local/bin/phpunit" codecoverage="true" haltonfailure="true" haltonerror="true" configuration="phpunit.xml.dist">
<formatter type="plain" usefile="false"/>
<batchtest>
<fileset dir="tests">
<include name="*Test.php"/>
</fileset>
</batchtest>
</phpunit>
</target>
<!-- phpDocumentor -->
<target name="phpdoc" description="PHP Documentor">
<mkdir dir="docs" />
<phpdoc2 title="API Documentation" destdir="docs">
<fileset dir="src">
<include name="*.php" />
</fileset>
</phpdoc2>
</target>
</project>