-
Notifications
You must be signed in to change notification settings - Fork 7
/
venne-phing.xml
102 lines (93 loc) · 2.82 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0" encoding="utf-8"?>
<project name="venne/venne" default="build">
<property name="path.venne.venne.builded" value="${path.venne.venne.root}/.builded"/>
<property name="path.venne.venne.bower.executable" value="bower"/>
<property name="path.venne.venne.npm.executable" value="npm"/>
<property name="path.venne.venne.grunt.executable" value="grunt"/>
<property name="path.venne.venne.tester.executable" value="${path.bin}/tester"/>
<property name="path.venne.venne.phpcs.executable" value="${path.bin}/phpcs"/>
<property name="path.venne.venne.root" value="${path.vendor}/venne/venne"/>
<property name="path.venne.venne.build" value="${path.venne.venne.root}/build"/>
<property name="path.venne.venne.src" value="${path.venne.venne.root}/src"/>
<property name="path.venne.venne.tests" value="${path.venne.venne.root}/tests"/>
<property name="path.venne.venne.phpcs.ruleset" value="${path.venne.venne.build}/ruleset.xml"/>
<target name="build">
<if>
<available file="${path.venne.venne.builded}" />
<then>
</then>
<else>
<exec
executable="${path.venne.venne.bower.executable}"
logoutput="true"
passthru="true"
checkreturn="true"
dir="${path.venne.venne.root}"
>
<arg value="install"/>
</exec>
<exec
executable="${path.venne.venne.npm.executable}"
logoutput="true"
passthru="true"
checkreturn="true"
dir="${path.venne.venne.root}"
>
<arg value="install"/>
</exec>
<exec
executable="${path.venne.venne.grunt.executable}"
logoutput="true"
passthru="true"
checkreturn="true"
dir="${path.venne.venne.root}"
>
</exec>
<touch file="${path.venne.venne.builded}" />
</else>
</if>
</target>
<target name="rebuild">
<delete file="${path.venne.venne.builded}" />
<phingcall target="build" />
</target>
<target name="check" depends="check-php,tester"/>
<target name="check-php" depends="phpcs"/>
<target name="phpcs">
<exec
executable="${path.venne.venne.phpcs.executable}"
logoutput="true"
passthru="true"
checkreturn="true"
>
<arg value="--standard=${path.venne.venne.phpcs.ruleset}"/>
<arg value="--extensions=php"/>
<arg value="--encoding=utf-8"/>
<arg value="--tab-width=4"/>
<arg value="-sp"/>
<arg path="${path.venne.venne.src}"/>
</exec>
</target>
<target name="tester">
<exec
executable="${path.venne.venne.tester.executable}"
logoutput="true"
passthru="true"
checkreturn="true"
>
<arg path="${path.venne.venne.tests}"/>
<arg value="-s"/>
</exec>
</target>
<target name="watch">
<exec
executable="${path.venne.venne.grunt.executable}"
logoutput="true"
passthru="true"
checkreturn="true"
dir="${path.venne.venne.root}"
>
<arg value="watch"/>
</exec>
</target>
</project>