-
Notifications
You must be signed in to change notification settings - Fork 381
/
vcstests.xml
79 lines (73 loc) · 3.69 KB
/
vcstests.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
<project name="vcs-tests" default="vcs-tests-setup" xmlns:nx="urn:nuxeo-build" xmlns:artifact="urn:nuxeo-artifact">
<taskdef resource="org/nuxeo/build/antlib.xml" uri="urn:nuxeo-build" />
<taskdef resource="org/nuxeo/build/artifact/antlib.xml" uri="urn:nuxeo-artifact" />
<taskdef resource="net/sf/antcontrib/antlib.xml" />
<property name="out.dir" value="${maven.project.build.directory}" />
<unzip dest="${out.dir}/" overwrite="false">
<artifact:resolveFile key="org.nuxeo:nuxeo-ftest::zip" />
</unzip>
<import file="${out.dir}/nuxeo-ftest.xml" />
<property name="vcsprops" value="${user.home}/nuxeo-test-vcs.properties" />
<target name="vcs-tests-setup" depends="vcs-tests-teardown,_initdb">
<!-- create default empty file -->
<echo file="${vcsprops}" append="false" />
<propertyfile file="${vcsprops}">
<entry key="nuxeo.test.core" value="${nuxeo.test.core}" />
</propertyfile>
<nx:profile name="pgsql">
<propertyfile file="${vcsprops}">
<entry key="nuxeo.test.vcs.db" value="PostgreSQL" />
<entry key="nuxeo.test.vcs.server" value="${nuxeo.db.host}" />
<entry key="nuxeo.test.vcs.port" value="${nuxeo.db.port}" />
<entry key="nuxeo.test.vcs.database" value="${nuxeo.db.name}" />
<entry key="nuxeo.test.vcs.user" value="${nuxeo.db.user}" />
<entry key="nuxeo.test.vcs.password" value="${nuxeo.db.pass}" />
</propertyfile>
</nx:profile>
<nx:profile name="mssql">
<propertyfile file="${vcsprops}">
<entry key="nuxeo.test.vcs.db" value="SQLServer" />
<entry key="nuxeo.test.vcs.server" value="${nuxeo.db.host}" />
<entry key="nuxeo.test.vcs.port" value="${nuxeo.db.port}" />
<entry key="nuxeo.test.vcs.database" value="${nuxeo.db.name}" />
<entry key="nuxeo.test.vcs.user" value="${nuxeo.db.user}" />
<entry key="nuxeo.test.vcs.password" value="${nuxeo.db.pass}" />
</propertyfile>
</nx:profile>
<!-- virtual profile covering oracle10g, oracle11g, oracle12c and oracle18c profiles -->
<nx:profile name="oracle">
<propertyfile file="${vcsprops}">
<entry key="nuxeo.test.vcs.db" value="Oracle" />
<entry key="nuxeo.test.vcs.url"
value="jdbc:oracle:thin:@//${nuxeo.db.host}:${nuxeo.db.port}/${nuxeo.db.name}" />
<entry key="nuxeo.test.vcs.user" value="${nuxeo.db.user}" />
<entry key="nuxeo.test.vcs.password" value="${nuxeo.db.pass}" />
</propertyfile>
</nx:profile>
<nx:profile name="mysql">
<propertyfile file="${vcsprops}">
<entry key="nuxeo.test.vcs.db" value="MySQL" />
<entry key="nuxeo.test.vcs.url" value="jdbc:mysql://${nuxeo.db.host}:${nuxeo.db.port}/${nuxeo.db.name}" />
<entry key="nuxeo.test.vcs.user" value="${nuxeo.db.user}" />
<entry key="nuxeo.test.vcs.password" value="${nuxeo.db.pass}" />
</propertyfile>
</nx:profile>
<nx:profile name="mariadb">
<propertyfile file="${vcsprops}">
<entry key="nuxeo.test.vcs.db" value="MySQL" />
<entry key="nuxeo.test.vcs.url" value="jdbc:mariadb://${nuxeo.db.host}:${nuxeo.db.port}/${nuxeo.db.name}" />
<entry key="nuxeo.test.vcs.user" value="${nuxeo.db.user}" />
<entry key="nuxeo.test.vcs.password" value="${nuxeo.db.pass}" />
</propertyfile>
</nx:profile>
<nx:profile name="mongodb">
<propertyfile file="${vcsprops}">
<entry key="nuxeo.test.mongodb.server" value="${nuxeo.mongodb.server}" />
<entry key="nuxeo.test.mongodb.dbname" value="${nuxeo.mongodb.dbname}" />
</propertyfile>
</nx:profile>
</target>
<target name="vcs-tests-teardown">
<delete file="${vcsprops}" failonerror="false" />
</target>
</project>