forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-test-tomcat-sqlserver.xml
48 lines (42 loc) · 1.9 KB
/
build-test-tomcat-sqlserver.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
<?xml version="1.0"?>
<project basedir="." default="test" name="portal-test-tomcat-sqlserver" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test-tomcat.xml" />
<import file="build-test.xml" />
<target name="run-selenium-tomcat-sqlserver">
<if>
<not>
<isset property="database.version" />
</not>
<then>
<var name="database.version" value="2019" />
</then>
</if>
<if>
<equals arg1="${database.version}" arg2="2017" />
<then>
<var name="database.sqlserver.docker.image" value="mcr.microsoft.com/mssql/server:2017-CU19-ubuntu-16.04" />
</then>
<else>
<var name="database.sqlserver.docker.image" value="mcr.microsoft.com/mssql/server:2019-GA-ubuntu-16.04" />
</else>
</if>
<get-database-property property.name="database.host" />
<antcall inheritAll="false" target="start-docker-database-sqlserver">
<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.sqlserver.docker.image" value="${database.sqlserver.docker.image}" />
<param name="database.sqlserver.host" value="${database.host}_sqlserver" />
<param name="database.sqlserver.password" value="Liferay123" />
<param name="database.sqlserver.schema" value="lportal" />
<param name="database.sqlserver.url" value="jdbc:sqlserver://${database.host}:1434;databaseName=${database.sqlserver.schema}" />
<param name="database.sqlserver.username" value="sa" />
<param name="database.sqlserver.version" value="${database.version}" />
<param name="database.type" value="sqlserver" />
<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>