forked from aimeos/ai-client-html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phing.xml
61 lines (50 loc) · 2.9 KB
/
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="ai-client-html extension" default="test">
<target name="test" description="Executes all tests">
<phing target="test" haltonfailure="true" dir="lib/custom" />
<phing target="test" haltonfailure="true" dir="client/html" />
<phing target="test" haltonfailure="true" dir="controller/common" />
<phing target="test" haltonfailure="true" dir="controller/jobs" />
</target>
<target name="testperf" description="Executes all performance tests">
<phing target="testperf" haltonfailure="true" dir="client/html" />
</target>
<target name="coverage" description="Generates the code coverage report">
<phing target="coverage" haltonfailure="true" dir="lib/custom" />
<phing target="coverage" haltonfailure="true" dir="client/html" />
<phing target="coverage" haltonfailure="true" dir="controller/common" />
<phing target="coverage" haltonfailure="true" dir="controller/jobs" />
</target>
<target name="check" description="Checks for code quality">
<phing target="check" haltonfailure="true" dir="lib/custom" />
<phing target="check" haltonfailure="true" dir="client/html" />
<phing target="check" haltonfailure="true" dir="controller/common" />
<phing target="check" haltonfailure="true" dir="controller/jobs" />
</target>
<target name="clean" description="Cleans up temporary files">
<phing target="clean" haltonfailure="true" dir="lib/custom" />
<phing target="clean" haltonfailure="true" dir="client/html" />
<phing target="clean" haltonfailure="true" dir="controller/common" />
<phing target="clean" haltonfailure="true" dir="controller/jobs" />
</target>
<target name="i18n" description="Creates all translation files">
<phing target="i18n" haltonfailure="true" dir="client" />
<phing target="i18n" haltonfailure="true" dir="controller/jobs" />
</target>
<target name="build" description="Builds package for deployment">
<exec command="tx pull -a -f --minimum-perc=1" checkreturn="true" logoutput="true" />
<phing target="build" haltonfailure="true" dir="controller/jobs" />
<phing target="build" haltonfailure="true" dir="client" />
</target>
<target name="release" description="Creates new release" depends="build">
<exec command="git add ." checkreturn="true" logoutput="true" />
<exec command="git commit -a" checkreturn="true" logoutput="true" />
<propertyprompt propertyName="version" promptText="Enter release version" promptCharacter=":" useExistingValue="true"/>
<exec command="git checkout -b ${version}" checkreturn="true" logoutput="true" />
<exec command="git tag -a ${version} -m 'Release ${version}'" checkreturn="true" logoutput="true" />
<exec command="git push origin ${version}" checkreturn="true" logoutput="true" />
<exec command="git push --tags" checkreturn="true" logoutput="true" />
</target>
<target name="all" depends="test,check,build" description="Builds all parts of the package">
</target>
</project>