-
Notifications
You must be signed in to change notification settings - Fork 0
/
venne-phing.xml
53 lines (45 loc) · 1.6 KB
/
venne-phing.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="venne/widgets" default="build">
<property name="path.venne.widgets.tester.executable" value="${path.bin}/tester"/>
<property name="path.venne.widgets.phpcs.executable" value="${path.bin}/phpcs"/>
<property name="path.venne.widgets.root" value="${path.vendor}/venne/widgets"/>
<property name="path.venne.widgets.build" value="${path.venne.widgets.root}/build"/>
<property name="path.venne.widgets.src" value="${path.venne.widgets.root}/src"/>
<property name="path.venne.widgets.tests" value="${path.venne.widgets.root}/tests"/>
<property name="path.venne.widgets.phpcs.ruleset" value="${path.venne.widgets.build}/ruleset.xml"/>
<target name="build">
</target>
<target name="rebuild">
<phingcall target="build" />
</target>
<target name="check" depends="check-php,tester"/>
<target name="check-php" depends="phpcs"/>
<target name="phpcs">
<exec
executable="${path.venne.widgets.phpcs.executable}"
logoutput="true"
passthru="true"
checkreturn="true"
>
<arg value="--standard=${path.venne.widgets.phpcs.ruleset}"/>
<arg value="--extensions=php"/>
<arg value="--encoding=utf-8"/>
<arg value="--tab-width=4"/>
<arg value="-sp"/>
<arg path="${path.venne.widgets.src}"/>
</exec>
</target>
<target name="tester">
<exec
executable="${path.venne.widgets.tester.executable}"
logoutput="true"
passthru="true"
checkreturn="true"
>
<arg path="${path.venne.widgets.tests}"/>
<arg value="-s"/>
<arg value="-c"/>
<arg value="${path.venne.widgets.tests}/php-unix.ini"/>
</exec>
</target>
</project>