-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
54 lines (46 loc) · 1.57 KB
/
build.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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Proposed Phing build file for MediaWiki app at Wikia -->
<!-- Primary purpose of this is to make a package -->
<project name="Wikia App" default="assemble-timestamp" basedir=".">
<tstamp>
<format property="WIKIA_VERSION" pattern="%Y%m%d%H%M%S"/>
</tstamp>
<target name="assemble-timestamp">
<phingcall target="assemble">
<property name="release_option" value="version" override="false" />
</phingcall>
</target>
<target name="jenkinsBuild">
<phingcall target="assemble">
<property name="release_option" value="version" override="false" />
<property name="WIKIA_VERSION" value="${env.GIT_BRANCH}.${env.BUILD_NUMBER}"/>
</phingcall>
</target>
<target name="assemble">
<property name="version.number" value="${WIKIA_VERSION}" />
<copy todir="build/app-${version.number}" >
<fileset dir=".">
<include name="**/*" />
<include name="*" />
<exclude name=".git" />
<exclude name="build.xml" />
<exclude name="build" />
<exclude name="build/*" />
<exclude name="build/**" />
</fileset>
</copy>
<tar destfile="build/app-${version.number}.tar.gz" compression="gzip">
<fileset dir="build/app-${version.number}">
<include name="**/*" />
<include name="*" />
<exclude name=".git" />
<exclude name="build" />
<exclude name="build/*" />
<exclude name="build/**" />
</fileset>
</tar>
</target>
<target name="clean">
<delete dir="build" />
</target>
</project>