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