forked from aimeos/ai-admin-extadm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phing.xml
56 lines (45 loc) · 2.54 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="ai-admin-extadm extension" default="test">
<target name="test" description="Executes all tests">
<phing target="test" haltonfailure="true" dir="controller/extjs" />
<phing target="test" haltonfailure="true" dir="controller/jobs" />
</target>
<target name="testperf" description="Executes all performance tests">
<echo msg="No performance tests available" />
</target>
<target name="coverage" description="Generates the code coverage report">
<phing target="coverage" haltonfailure="true" dir="controller/extjs" />
<phing target="coverage" haltonfailure="true" dir="controller/jobs" />
</target>
<target name="check" description="Checks for code quality">
<phing target="check" haltonfailure="true" dir="controller/extjs" />
<phing target="check" haltonfailure="true" dir="controller/jobs" />
<phing target="check" haltonfailure="false" dir="admin/extjs" />
</target>
<target name="clean" description="Cleans up temporary files">
<phing target="clean" haltonfailure="true" dir="controller/extjs" />
<phing target="clean" haltonfailure="true" dir="controller/jobs" />
</target>
<target name="i18n" description="Creates all translation files">
<phing target="i18n" haltonfailure="true" dir="controller/extjs" />
<phing target="i18n" haltonfailure="true" dir="controller/jobs" />
<phing target="i18n" haltonfailure="true" dir="admin" />
</target>
<target name="build" description="Builds package for deployment">
<exec command="tx pull -a -f" checkreturn="true" logoutput="true" />
<phing target="build" haltonfailure="true" dir="controller/extjs" />
<phing target="build" haltonfailure="true" dir="controller/jobs" />
<phing target="build" haltonfailure="true" dir="admin" />
</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>