Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on: [push, pull_request]
jobs:
build:
name: Build and Test (${{ matrix.os }} / OpenJDK ${{ matrix.jdk }})
strategy:
fail-fast: true
matrix:
jdk: ['8', '11']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Maven Build
run: mvn clean package -DskipTests
- name: Test
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
run: mvn verify
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ node/*

maven-archiver/

.DS_Store

src/test/cypress/videos/*.mp4
src/test/cypress/screenshots/**/*.png
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# eXist-db Documentation
[![Build Status](https://travis-ci.com/eXist-db/documentation.svg?branch=master)](https://travis-ci.com/eXist-db/documentation)
[![Build Status](https://github.com/eXist-db/documentation/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/eXist-db/documentation/actions/workflows/ci.yml)
[![Docbook version](https://img.shields.io/badge/docbook-5.1-19a5a4.svg)](http://docbook.org/xml/5.1/)
[![eXist-db version](https://img.shields.io/badge/eXist_db-5.2.0-blue.svg)](http://www.exist-db.org/exist/apps/homepage/index.html)

Expand Down
2 changes: 1 addition & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"screenshotsFolder": "src/test/cypress/screenshots",
"supportFile": "src/test/cypress/support/index.js",
"videosFolder": "src/test/cypress/videos",
"projectId": "h8zx19"
"projectId": "wgr8uu"
}
135 changes: 128 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@
</resource>
</resources>

<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
Expand Down Expand Up @@ -139,12 +149,13 @@
</goals>
<phase>compile</phase>
</execution>
<!-- Mocha is used for integration tests of xqsuite -->
<execution>
<id>mocha tests</id>
<goals>
<goal>npm</goal>
</goals>
<phase>test</phase>
<phase>integration-test</phase>
<configuration>
<arguments>test</arguments>
</configuration>
Expand Down Expand Up @@ -238,6 +249,46 @@
</execution>
</executions>
</plugin>
<!-- start up Server in Docker for integration-test -->
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.35.0</version>
<configuration>
<verbose>true</verbose>
<images>
<image>
<alias>existdb-docs-tests</alias>
<name>existdb/existdb:latest</name>
<run>
<ports>
<port>8080:8080</port>
</ports>
<wait>
<log>Server has started, listening on</log>
<time>120000</time>
</wait>
</run>
</image>
</images>
</configuration>
<executions>
<execution>
<id>docker-it-start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>docker-it-stop</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand All @@ -259,17 +310,87 @@
</plugins>
</build>

<repositories>
<repository>
<id>exist</id>
<url>https://raw.github.com/eXist-db/mvn-repo/master/</url>
</repository>
</repositories>
<!--
Cypress is used for integration tests

First profile enables to run Cypress without record (cypress.io) support.
Second profile enables to run Cypress with record support, e.g. for CI.
-->
<profiles>
<profile>
<id>cypress-without-record</id>
<activation>
<property>
<name>env.CI</name>
<value>!true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>cypress</argument>
<argument>--</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>cypress-with-record</id>
<activation>
<property>
<name>env.CI</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>cypress</argument>
<argument>--</argument>
<argument>--record</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<pluginRepositories>
<pluginRepository>
<id>clojars.org</id>
<url>http://clojars.org/repo</url>
</pluginRepository>
</pluginRepositories>

</project>
10 changes: 0 additions & 10 deletions src/test/mocha/test.js

This file was deleted.