-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.example.xml
99 lines (80 loc) · 4.6 KB
/
build.example.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Phingistrano" default="help">
<!-- Required properties -->
<property name="phingistrano.dir" value="${project.basedir}/vendor/Phingistrano" />
<property name="build.target" value=".build" />
<property name="deploy.user" value="jesse" />
<property name="deploy.password" value="jiveturkey" />
<property name="deploy.path" value="/var/www/deployments/${phing.project.name}/${deploy.branch}" />
<property name="deploy.repository" value="[email protected]:CodeMeme/${phing.project.name}.git" />
<property name="deploy.servers" value="172.99.99.99, 172.99.99.98" />
<property name="version.to" value="[email protected]" />
<property name="version.from" value="[email protected]" />
<!-- available properties (not required) -->
<!-- deploy common -->
<property name="deploy.branch" value="master" />
<property name="tunnel.configured" value="false" />
<!-- deploy direct -->
<property name="deploy.log" value="2>&1 | tee ${deploy.path}/deploy.log" />
<!-- test phpunit -->
<property name="test.bootstrap" value="${build.target}/tests/bootstrap.php" />
<property name="test.dir" value="${project.basedir}" />
<property name="test.incpattern" value="**/*Test.php" />
<property name="test.excpattern" value="" />
<property name="test.type" value="xml" />
<property name="test.usefile" value="true" />
<property name="test.haltfail" value="true" />
<property name="test.halterror" value="true" />
<!-- sniff phpcs -->
<property name="sniff.standard" value="PEAR" />
<property name="sniff.ignorepatterns" value="${build.target},vendor,Sniff.php" />
<property name="sniff.show" value="true" />
<!-- docs phpdocumentor -->
<property name="docs.destdir" value="${build.target}/docs" />
<property name="docs.target" value="${project.basedir}" />
<property name="docs.ignore" value="" />
<property name="docs.output" value="HTML:frames:DOM/earthli" />
<!-- Imports -->
<import file="${project.basedir}/vendor/Phingistrano/build.xml" />
<import file="${project.basedir}/build.helpers.xml" />
<!-- Main Targets -->
<target name="help"
depends="modules.help"
description="This help Menu." />
<target name="build"
depends="test.do, sniff.do, docs.do"
description="Main Build Routine." />
<target name="release"
depends="version.tag, deploy.production, version.notify"
description="Executes a release to production." />
<target name="deploy.production"
depends="deploy.do"
description="Deploys master branch to production." />
<target name="rollback.production"
depends="rollback.do"
description="Rolls back a production release." />
<target name="deploy.staging"
depends="staging.properties, deploy.do"
description="Deploys the current branch to staging." />
<target name="rollback.staging"
depends="staging.properties, rollback.do"
description="Rolls back the staging environment." />
<target name="deploy.testing"
depends="testing.properties, deploy.do"
description="Deploys current branch to testing." />
<target name="rollback.testing"
depends="testing.properties, rollback.do"
description="Rolls back the testing environment." />
<!-- Targets that assign properties -->
<target name="staging.properties" depends="deploy.currentbranch" >
<property name="deploy.servers" value="172.99.99.97" override="true" />
<property name="deploy.path" value="/var/www/deployments/phingistrano/develop" override="true" />
<property name="deploy.log" value="2>&1 | tee -a ${deploy.path}/deploy.log" override="true" />
<property name="deploy.execline" value="deploy.staging" override="true" />
</target>
<target name="testing.properties" depends="deploy.currentbranch">
<property name="deploy.path" value="/var/www/deployments/phingistrano/develop" override="true" />
<property name="deploy.log" value="2>&1 | tee -a ${deploy.path}/deploy.log" override="true" />
<property name="deploy.execline" value="deploy.testing" override="true" />
</target>
</project>