-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from opengisch/ogc-test-suite
CI test suite
- Loading branch information
Showing
7 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ __pycache__ | |
|
||
static | ||
media | ||
_test_outputs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Courtesy of https://github.com/opengeospatial/ets-ogcapi-features10/issues/197 | ||
|
||
FROM maven:3.8-openjdk-18 | ||
|
||
# Copy actual source files | ||
ARG VERSION=1.4 | ||
RUN git clone --depth 1 --branch ${VERSION} https://github.com/opengeospatial/ets-ogcapi-features10.git /build | ||
|
||
WORKDIR /build/ | ||
|
||
# COPY pom.xml . # checkedout already | ||
|
||
RUN mvn --version | ||
|
||
# Pre-download all dependencies to increase caching in docker builds | ||
RUN mvn dependency:resolve dependency:resolve-plugins dependency:copy-dependencies dependency:go-offline -Pdocker | ||
|
||
# Copy actual source files | ||
# COPY ./src ./src # checkedout already | ||
|
||
# Install offline to avoid triggering new dependency update | ||
RUN mvn install -DskipTests -Dmaven.javadoc.skip | ||
|
||
# TODO: Should get the version from build context | ||
# ARG VERSION=1.5-SNAPSHOT # done above | ||
ARG OUTPUT_DIR=/build/run/output | ||
ARG TEST_RUN_PROPS=/build/run/test-run-props.xml | ||
|
||
ENV VERSION=${VERSION} | ||
ENV OUTPUT_DIR=${OUTPUT_DIR} | ||
ENV TEST_RUN_PROPS=${TEST_RUN_PROPS} | ||
|
||
ADD ./test-run-props.xml /build/run/test-run-props.xml | ||
|
||
CMD ["sh", "-c", "java -jar /build/target/ets-ogcapi-features10-${VERSION}-aio.jar -o ${OUTPUT_DIR} -h true ${TEST_RUN_PROPS}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> | ||
<properties version="1.0"> | ||
<comment>Test run arguments</comment> | ||
<entry key="iut">http://django:8000/oapif/</entry> | ||
</properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
services: | ||
|
||
conformance_test: | ||
build: ./conformance-tests | ||
volumes: | ||
- ./_test_outputs:/build/run/output | ||
# - .:/build/run/test-run-props.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters