forked from Bit-Wasp/bitcoin-lib-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
41 lines (35 loc) · 1.43 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="bitcoin/package" default="build">
<target name="build" depends="lint,phpunit,phpcs" />
<target name="lint"
description="Check the syntax of PHP files">
<mkdir dir="${project.basedir}/build/cache" />
<phplint cachefile="${project.basedir}/build/cache/phplint.cache">
<fileset dir="${project.basedir}/src">
<include name="**/*.php"/>
</fileset>
</phplint>
</target>
<target name="phpunit">
<delete dir="${project.basedir}/build/docs/code-coverage" />
<mkdir dir="${project.basedir}/build/docs/code-coverage" />
<exec executable="${project.basedir}/vendor/bin/phpunit" passthru="true">
<arg value="-c" />
<arg path="${project.basedir}/build" />
<arg value="--debug" />
</exec>
</target>
<target name="phpcs">
<exec command="${project.basedir}/vendor/bin/phpcs -a ./src --standard=./build/phpcs.xml -n" passthru="true">
</exec>
</target>
<target name="phpmd">
<exec command="${project.basedir}/vendor/bin/phpmd src/ text build/phpmd.xml" passthru="true">
</exec>
</target>
<target name="build:docs" description="Build user documentation">
<exec executable="make" passthru="true" dir="${project.basedir}/docs">
<arg value="html" />
</exec>
</target>
</project>