Skip to content

Commit 47d4ed2

Browse files
authored
Merge pull request #4333 from evolvedbinary/feature/exist-xqts
Run XQTS against eXist-db in CI
2 parents 4d0e50a + 4d00a85 commit 47d4ed2

File tree

6 files changed

+188
-1
lines changed

6 files changed

+188
-1
lines changed

.github/workflows/ci-xqts.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: XQTS
2+
on: [push, pull_request]
3+
jobs:
4+
xqts:
5+
name: W3C XQuery Test Suite
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Set up JDK 8
10+
uses: actions/setup-java@v2
11+
with:
12+
distribution: temurin
13+
java-version: '8'
14+
cache: 'maven'
15+
- name: Maven XQTS Build
16+
run: mvn -V -B clean package -DskipTests -Ddependency-check.skip=true --projects exist-xqts --also-make
17+
- name: Run XQTS
18+
timeout-minutes: 60
19+
env:
20+
JAVA_OPTS: -XX:+UseG1GC -XX:+UseStringDeduplication
21+
run: find exist-xqts/target -name exist-xqts-runner.sh -exec {} --xqts-version HEAD --output-dir /tmp/xqts-output \;
22+
- name: Archive XQTS Logs
23+
if: always()
24+
uses: actions/upload-artifact@v2
25+
with:
26+
name: xqts-logs
27+
retention-days: 14
28+
path: /tmp/xqts-output

exist-distribution/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
</scm>
4747

4848
<properties>
49-
<appassembler.version>2.1.0</appassembler.version>
5049
<assemble.dir>${project.build.directory}/${project.artifactId}-${project.version}-dir</assemble.dir>
5150
<public.xar.repo.uri>http://exist-db.org/exist/apps/public-repo</public.xar.repo.uri>
5251
<expath.pkg.dir>${project.build.directory}/expath-pkgs</expath.pkg.dir>

exist-parent/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
<apache.httpcomponents.version>4.5.13</apache.httpcomponents.version>
105105
<apache.httpcomponents.core.version>4.4.15</apache.httpcomponents.core.version>
106106
<apache.xmlrpc.version>4.0.0</apache.xmlrpc.version>
107+
<appassembler.version>2.1.0</appassembler.version>
107108
<aspectj.version>1.9.8.M1</aspectj.version>
108109
<exquery.distribution.version>0.2.1</exquery.distribution.version>
109110
<icu.version>59.1</icu.version>

exist-xqts/LGPL-21-license.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
eXist-db Open Source Native XML Database
2+
Copyright (C) 2001 The eXist-db Authors
3+
4+
5+
http://www.exist-db.org
6+
7+
This library is free software; you can redistribute it and/or
8+
modify it under the terms of the GNU Lesser General Public
9+
License as published by the Free Software Foundation; either
10+
version 2.1 of the License, or (at your option) any later version.
11+
12+
This library is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+
Lesser General Public License for more details.
16+
17+
You should have received a copy of the GNU Lesser General Public
18+
License along with this library; if not, write to the Free Software
19+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

exist-xqts/pom.xml

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
eXist-db Open Source Native XML Database
5+
Copyright (C) 2001 The eXist-db Authors
6+
7+
8+
http://www.exist-db.org
9+
10+
This library is free software; you can redistribute it and/or
11+
modify it under the terms of the GNU Lesser General Public
12+
License as published by the Free Software Foundation; either
13+
version 2.1 of the License, or (at your option) any later version.
14+
15+
This library is distributed in the hope that it will be useful,
16+
but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18+
Lesser General Public License for more details.
19+
20+
You should have received a copy of the GNU Lesser General Public
21+
License along with this library; if not, write to the Free Software
22+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23+
24+
-->
25+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
26+
<modelVersion>4.0.0</modelVersion>
27+
28+
<parent>
29+
<groupId>org.exist-db</groupId>
30+
<artifactId>exist-parent</artifactId>
31+
<version>6.1.0-SNAPSHOT</version>
32+
<relativePath>../exist-parent</relativePath>
33+
</parent>
34+
35+
<artifactId>exist-xqts</artifactId>
36+
<packaging>pom</packaging>
37+
38+
<name>eXist-db W3C XQTS</name>
39+
<description>eXist-db W3C XQuery Test Suite</description>
40+
41+
<scm>
42+
<connection>scm:git:https://github.com/exist-db/exist.git</connection>
43+
<developerConnection>scm:git:https://github.com/exist-db/exist.git</developerConnection>
44+
<url>scm:git:https://github.com/exist-db/exist.git</url>
45+
</scm>
46+
47+
<properties>
48+
<assemble.dir>${project.build.directory}/${project.artifactId}-${project.version}-dir</assemble.dir>
49+
</properties>
50+
51+
<dependencies>
52+
53+
<dependency>
54+
<groupId>org.exist-db</groupId>
55+
<artifactId>exist-xqts-runner_2.13</artifactId>
56+
<version>1.0.1</version>
57+
<exclusions>
58+
<!-- use the exist-core version of this project instead -->
59+
<exclusion>
60+
<groupId>${project.groupId}</groupId>
61+
<artifactId>exist-core</artifactId>
62+
</exclusion>
63+
</exclusions>
64+
</dependency>
65+
66+
<!-- use the exist-core version of this project -->
67+
<dependency>
68+
<groupId>${project.groupId}</groupId>
69+
<artifactId>exist-core</artifactId>
70+
<version>${project.version}</version>
71+
</dependency>
72+
73+
<!-- needed for the AppAssembler booter approach -->
74+
<dependency>
75+
<groupId>org.codehaus.mojo.appassembler</groupId>
76+
<artifactId>appassembler-booter</artifactId>
77+
<version>${appassembler.version}</version>
78+
<scope>runtime</scope>
79+
</dependency>
80+
81+
</dependencies>
82+
83+
<build>
84+
<plugins>
85+
<plugin>
86+
<groupId>org.codehaus.mojo</groupId>
87+
<artifactId>appassembler-maven-plugin</artifactId>
88+
<version>${appassembler.version}</version>
89+
<configuration>
90+
<repositoryLayout>flat</repositoryLayout>
91+
<repositoryName>lib</repositoryName>
92+
<binFileExtensions>
93+
<unix>.sh</unix>
94+
</binFileExtensions>
95+
<licenseHeaderFile>LGPL-21-license.txt</licenseHeaderFile>
96+
</configuration>
97+
<executions>
98+
<execution>
99+
<id>appassembler-base</id>
100+
<phase>package</phase>
101+
<goals>
102+
<goal>assemble</goal>
103+
</goals>
104+
<configuration>
105+
<assembleDirectory>${assemble.dir}</assembleDirectory>
106+
<programs />
107+
<configurationDirectory>etc</configurationDirectory>
108+
<copyConfigurationDirectory>true</copyConfigurationDirectory>
109+
<logsDirectory>logs</logsDirectory>
110+
</configuration>
111+
</execution>
112+
<execution>
113+
<id>appassembler-booter</id>
114+
<phase>package</phase>
115+
<goals>
116+
<goal>generate-daemons</goal>
117+
</goals>
118+
<configuration>
119+
<generateRepository>false</generateRepository>
120+
<target>${assemble.dir}</target>
121+
<separateTargetPlatforms>false</separateTargetPlatforms>
122+
<daemons>
123+
<daemon>
124+
<id>exist-xqts-runner</id>
125+
<mainClass>org.exist.xqts.runner.XQTSRunner</mainClass>
126+
<platforms>
127+
<platform>booter-unix</platform>
128+
<platform>booter-windows</platform>
129+
</platforms>
130+
</daemon>
131+
</daemons>
132+
</configuration>
133+
</execution>
134+
</executions>
135+
</plugin>
136+
</plugins>
137+
</build>
138+
139+
</project>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<module>exist-service</module>
5656
<module>exist-start</module>
5757
<module>extensions</module>
58+
<module>exist-xqts</module>
5859
</modules>
5960

6061
<build>

0 commit comments

Comments
 (0)