-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
70 lines (54 loc) · 2.48 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<project name="CommandRunning" default="all">
<target name="all" depends="clean,phpcbf,phpcs,phpcb,phpunit" />
<target name="setup" depends="clean,dist" />
<target name="checkstyle" depends="clean,phpcs,phpcb" />
<target name="fixstyle" depends="phpcbf" />
<target name="test" depends="clean,phpunit,phpcb,humbug" />
<target name="clean" description="Remove temporary directories">
<delete dir="logs" />
<delete dir="build" />
<mkdir dir="logs" />
<mkdir dir="build" />
</target>
<target name="dist" description="Creates local copies of dist files">
<copy file="humbug.json.dist" tofile="humbug.json" />
<copy file="phpunit.xml.dist" tofile="phpunit.xml" />
<copy file="phpcs.xml.dist" tofile="phpcs.xml" />
</target>
<target name="install">
<exec command="COMPOSER_PROCESS_TIMEOUT=4000 HTTP_PROXY_REQUEST_FULLURI=0 HTTPS_PROXY_REQUEST_FULLURI=0 php composer.phar install --prefer-dist" passthru="true"/>
</target>
<target name="update">
<exec command="COMPOSER_PROCESS_TIMEOUT=4000 HTTP_PROXY_REQUEST_FULLURI=0 HTTPS_PROXY_REQUEST_FULLURI=0 php composer.phar update --prefer-dist" passthru="true"/>
</target>
<target name="phpunit" description="Run phpunit">
<exec executable="bin/phpunit" passthru="true">
</exec>
</target>
<target name="humbug" description="Run humbug">
<exec executable="bin/humbug" passthru="true">
</exec>
</target>
<target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer">
<exec executable="bin/phpcs" passthru="true">
</exec>
<exec executable="bin/phpcs" passthru="true">
<arg value="--report=checkstyle" />
<arg value="--report-file=logs/checkstyle.xml" />
</exec>
</target>
<target name="phpcbf" description="Code fixer using PHP_CodeSniffer">
<exec executable="bin/phpcbf" passthru="true">
<arg value="--no-patch" />
</exec>
</target>
<target name="phpcb" description="Aggregate tool output with PHP_CodeBrowser">
<exec executable="bin/phpcb" passthru="true">
<arg value="--log" /><arg path="logs" />
<arg value="--source" /><arg path="src" />
<arg value="--source" /><arg path="tests" />
<arg value="--output" /><arg path="build/browser" />
</exec>
</target>
</project>