forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-test-jsf.xml
199 lines (165 loc) · 5.9 KB
/
build-test-jsf.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?xml version="1.0"?>
<project basedir="./" name="portal-test-batch" xmlns:antelope="antlib:ise.antelope.tasks" xmlns:if="ant:if" xmlns:unless="ant:unless">
<import file="./build-test-batch.xml" />
<target name="run-jsf-tests">
<property name="max.metaspace.size" value="-XX:MaxMetaspaceSize=1024m" />
<propertycopy from="app.server.${app.server.type}.bin.dir" name="test.app.server.bin.dir" />
<replaceregexp
file="${test.app.server.bin.dir}/setenv.sh"
flags="gi"
match="-XX:MaxMetaspaceSize=[0-9]+[a-zA-Z]+"
replace="${max.metaspace.size}"
/>
<replaceregexp
file="${test.app.server.bin.dir}/setenv.bat"
flags="gi"
match="-XX:MaxMetaspaceSize=[0-9]+[a-zA-Z]+"
replace="${max.metaspace.size}"
/>
<if>
<not>
<or>
<resourcecontains
resource="${test.app.server.bin.dir}/setenv.sh"
substring="${max.metaspace.size}"
/>
<resourcecontains
resource="${test.app.server.bin.dir}/setenv.bat"
substring="${max.metaspace.size}"
/>
</or>
</not>
<then>
<fail message="Unable to set custom max metaspace of "${max.metaspace.size}" for ${test.app.server.bin.dir}/setenv.sh and setenv.bat." />
</then>
</if>
<propertycopy from="app.server.${app.server.type}.classes.portal.dir" name="app.server.classes.portal.dir" override="true" />
<echo append="true" file="${app.server.classes.portal.dir}/portal-ext.properties"><![CDATA[
terms.of.use.required=false
users.reminder.queries.enabled=false
users.reminder.queries.custom.question.enabled=false]]></echo>
<local name="portal.ext.properties" />
<loadfile
property="portal.ext.properties"
srcFile="${app.server.classes.portal.dir}/portal-ext.properties"
>
<filterchain>
<tokenfilter>
<replacestring from="captcha.max.challenges=-1" to="" />
</tokenfilter>
<trim />
<ignoreblank />
</filterchain>
</loadfile>
<echo file="${app.server.classes.portal.dir}/portal-ext.properties">${portal.ext.properties}</echo>
<propertycopy from="browser.firefox.bin.file[${liferay.faces.test.browser.version}]" name="browser.firefox.bin.file" silent="true" />
<prepare-gecko-driver />
<property location="${selenium.executable.dir.name}${selenium.gecko.driver.executable}" name="gecko.driver.path" />
<!--
LRQA-60084 Temporary workaround until new release branch is available
from the Faces repos
-->
<exec dir="${liferay.faces.alloy.dir}" executable="git">
<arg line="checkout" />
<arg line="c387002579a8883c737639310fb1000baee6e0b2" />
</exec>
<exec dir="${liferay.faces.alloy.dir}" executable="git">
<arg line="cherry-pick" />
<arg line="b51c1251c04bb8b130e364805f09e457220a1737" />
<arg line="--strategy-option " />
<arg line="theirs " />
</exec>
<exec dir="${liferay.faces.alloy.dir}" executable="git">
<arg line="cherry-pick" />
<arg line="2fe709c461ecc70bd416b855c15f5c6bebae1426" />
<arg line="--strategy-option " />
<arg line="theirs " />
</exec>
<exec dir="${liferay.faces.bridge.impl.dir}" executable="git">
<arg line="checkout" />
<arg line="31e19c170bbdce3e98e08a560a8c935392ebd69d" />
</exec>
<exec dir="${liferay.faces.bridge.impl.dir}" executable="git">
<arg line="cherry-pick" />
<arg line="c868b05d7abea77421c36b5ffb580ee9e2de8563" />
<arg line="--strategy-option " />
<arg line="theirs " />
</exec>
<exec dir="${liferay.faces.bridge.impl.dir}" executable="git">
<arg line="cherry-pick" />
<arg line="434358cb40c1ff30243062bfc1d8db5850efcbdf" />
<arg line="--strategy-option " />
<arg line="theirs " />
</exec>
<exec dir="${liferay.faces.portal.dir}" executable="git">
<arg line="checkout" />
<arg line="f7819860f0d4619f1e5214b50de9fdf54dbb4bae" />
</exec>
<exec dir="${liferay.faces.portal.dir}" executable="git">
<arg line="cherry-pick" />
<arg line="296dff949be89d4ca674f3e32be583d97c51bde6" />
<arg line="--strategy-option " />
<arg line="theirs " />
</exec>
<exec dir="${liferay.faces.portal.dir}" executable="git">
<arg line="cherry-pick" />
<arg line="b9e923481b6e842bb873cb100ab5576e4d4250b0" />
<arg line="--strategy-option " />
<arg line="theirs " />
</exec>
<exec dir="${liferay.faces.showcase.dir}" executable="git">
<arg line="checkout" />
<arg line="95dcd30f260ee3e219db7c1109c02832200dd517" />
</exec>
<exec dir="${liferay.faces.showcase.dir}" executable="git">
<arg line="cherry-pick" />
<arg line="cbaf33df7b508a990d30414a7e2f06bc815283e1" />
<arg line="--strategy-option " />
<arg line="theirs " />
</exec>
<exec dir="${liferay.faces.showcase.dir}" executable="git">
<arg line="cherry-pick" />
<arg line="6dfe2e3880caa28e13a5ae64cc48990d9e6d7612" />
<arg line="--strategy-option " />
<arg line="theirs " />
</exec>
<execute dir="${liferay.faces.bridge.impl.dir}/demo">
mvn clean package -P liferay,liferay73,mojarra,tomcat
</execute>
<execute dir="${liferay.faces.bridge.impl.dir}/issue">
mvn clean package -P liferay,liferay73,mojarra,tomcat
</execute>
<!--<execute dir="${liferay.faces.bridge.impl.dir}/tck">
mvn clean package -P liferay,liferay73,mojarra,tomcat
</execute>-->
<execute dir="${liferay.faces.portal.dir}/demo">
mvn clean package -P liferay,liferay73,mojarra,tomcat,validateCaptchaForTest
</execute>
<!--<execute dir="${liferay.faces.portal.dir}/test/test-setup-hook">
mvn clean package -P liferay,liferay73,mojarra,tomcat
</execute>-->
<copy
flatten="true"
todir="${liferay.home}/deploy/"
>
<fileset
dir="${liferay.faces.bridge.impl.dir}"
includes="**/target/*.war"
/>
<fileset
dir="${liferay.faces.portal.dir}"
excludes="**/target/com.liferay.faces.test.setup.hook*.war"
includes="**/target/*.war"
/>
</copy>
<copy
flatten="true"
todir="${liferay.home}/osgi/configs"
>
<fileset
dir="${liferay.faces.portal.dir}"
includes="**/configs/*.config"
/>
</copy>
</target>
</project>