forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-test-tomcat-db2.xml
53 lines (47 loc) · 2.02 KB
/
build-test-tomcat-db2.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
<?xml version="1.0"?>
<project basedir="." default="test" name="portal-test-tomcat-db2" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test-tomcat.xml" />
<target name="run-selenium-tomcat-db2">
<if>
<or>
<not>
<isset property="database.version" />
</not>
<equals arg1="${database.version}" arg2="11.5" />
</or>
<then>
<var name="database.version" value="11.5.7.0" />
</then>
</if>
<if>
<or>
<equals arg1="${database.version}" arg2="11.1" />
<equals arg1="${database.version}" arg2="11.1.3" />
</or>
<then>
<var name="database.db2.docker.image" value="liferay/liferay-ci-environment:db2-11.1.3.3_1.0.0" />
</then>
<else>
<var name="database.db2.docker.image" value="ibmcom/db2:${database.version}" />
</else>
</if>
<get-database-property property.name="database.host" />
<antcall inheritAll="false" target="start-docker-database-db2">
<param name="skip.copy.optional.jars" value="true" />
<param name="skip.prepare.portal.ext.properties" value="true" />
<param name="skip.rebuild.database" value="true" />
</antcall>
<antcall inheritAll="false" target="run-selenium-tomcat">
<param name="database.db2.docker.image" value="${database.db2.docker.image}" />
<param name="database.db2.host" value="${database.host}_db2" />
<param name="database.db2.password" value="liferay123" />
<param name="database.db2.schema" value="lportal" />
<param name="database.db2.url" value="jdbc:db2://${database.host}:25010/${database.db2.schema}:deferPrepares=false;fullyMaterializeInputStreams=true;fullyMaterializeLobData=true;progresssiveLocators=2;progressiveStreaming=2;" />
<param name="database.db2.username" value="db2inst1" />
<param name="database.db2.version" value="${database.version}" />
<param name="database.type" value="db2" />
<param name="test.jdbc.drivers.url" value="http://mirrors.lax.liferay.com/files.liferay.com/private/jdbc" />
<param name="test.class" value="${test.class}" />
</antcall>
</target>
</project>