forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-test-tomcat-mysql.xml
35 lines (29 loc) · 1.37 KB
/
build-test-tomcat-mysql.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
<?xml version="1.0"?>
<project basedir="." default="test" name="portal-test-tomcat-mysql" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test-tomcat.xml" />
<import file="build-test.xml" />
<target name="run-selenium-tomcat-mysql">
<antcall target="record-test-generated-properties" />
<if>
<not>
<isset property="database.version" />
</not>
<then>
<var name="database.version" value="8.0" />
</then>
</if>
<get-database-property property.name="database.host" />
<antcall inheritAll="false" target="start-docker-database-mysql">
<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.mysql.docker.image" value="mysql:${database.version}" />
<param name="database.mysql.host" value="${database.host}_mysql" />
<param name="database.mysql.schema" value="lportal" />
<param name="database.mysql.url" value="jdbc:mysql://${database.host}:3307/${database.mysql.schema}?characterEncoding=UTF-8&dontTrackOpenResources=true&holdResultsOpenOverStatementClose=true&serverTimezone=GMT&useFastDateParsing=false&useUnicode=true" />
<param name="database.type" value="mysql" />
<param name="test.class" value="${test.class}" />
</antcall>
</target>
</project>