Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run providers tests in different CI jobs
- Loading branch information
Showing
15 changed files
with
415 additions
and
217 deletions.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
include(${CMAKE_CURRENT_LIST_DIR}/config.ctest) | ||
|
||
# Requires a track on the CDash server | ||
ctest_start(Experimental) | ||
|
||
ctest_build (BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE BUILDRES NUMBER_WARNINGS NUMWARN NUMBER_ERRORS NUMERR) | ||
|
||
|
||
SET(IGNORE_BUILD_FAILURES $ENV{IGNORE_BUILD_FAILURES}) | ||
IF(NOT IGNORE_BUILD_FAILURES) | ||
IF(NOT ${BUILDRES} EQUAL 0 OR NOT ${NUMERR} EQUAL 0) | ||
ctest_submit (RETRY_COUNT 3 RETRY_DELAY 30) | ||
MESSAGE("") | ||
MESSAGE(" ${Yellow}Test results submitted to:${ColorReset} ${SHORTURL}") | ||
MESSAGE("") | ||
MESSAGE( FATAL_ERROR " ${Red}Build failed. Not running tests.${ColorReset}" ) | ||
MESSAGE("") | ||
ENDIF(NOT ${BUILDRES} EQUAL 0 OR NOT ${NUMERR} EQUAL 0) | ||
ENDIF(NOT IGNORE_BUILD_FAILURES) | ||
|
||
IF(${BUILDRES} EQUAL 0 OR ${NUMERR} EQUAL 0) | ||
MESSAGE("") | ||
MESSAGE(" ${BoldGreen}Success${ColorReset}") | ||
MESSAGE(" ${Green}Build passed successfully.${ColorReset}") | ||
MESSAGE("") | ||
MESSAGE("") | ||
ENDIF(${BUILDRES} EQUAL 0 OR ${NUMERR} EQUAL 0) |
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,26 @@ | ||
include(${CMAKE_CURRENT_LIST_DIR}/config.ctest) | ||
|
||
# Requires a track on the CDash server | ||
ctest_start(Experimental) | ||
|
||
ctest_test (BUILD "${CTEST_BINARY_DIRECTORY}" PARALLEL_LEVEL ${PARALLEL_LEVEL} RETURN_VALUE TESTRES) | ||
IF(NOT ${TESTRES} EQUAL 0) | ||
ctest_submit (RETRY_COUNT 3 RETRY_DELAY 30) | ||
MESSAGE("") | ||
MESSAGE(" ${Yellow}Test results submitted to:${ColorReset} ${SHORTURL}" ) | ||
MESSAGE("") | ||
SET(LEVEL "") | ||
IF(NOT ${TESTRES} EQUAL 0) | ||
SET(TESTRES_MESSAGE " Tests failed.") | ||
SET(LEVEL FATAL_ERROR) | ||
ENDIF(NOT ${TESTRES} EQUAL 0) | ||
MESSAGE( ${LEVEL} " ${Red}${TESTRES_MESSAGE} ${ColorReset}" ) | ||
ENDIF(NOT ${TESTRES} EQUAL 0) | ||
|
||
IF(NOT ${TESTRES} EQUAL 0) | ||
MESSAGE("") | ||
MESSAGE(" ${BoldGreen}Success${ColorReset}") | ||
MESSAGE(" ${Green}All tests passed successfully.${ColorReset}") | ||
MESSAGE("") | ||
MESSAGE("") | ||
ENDIF(NOT ${TESTRES} EQUAL 0) |
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,22 @@ | ||
version: '3' | ||
services: | ||
|
||
oracle: | ||
image: oslandia/oracle-slim-for-qgis:18.4.0-xe | ||
environment: | ||
- ORACLE_SID=XE | ||
- ORACLE_PWD=adminpass | ||
- ORACLE_PDB=ORCLPDBTEST | ||
- ORACLE_CHARACTERSET=AL32UTF8 | ||
ports: | ||
- 1521:1521 | ||
|
||
qgis-deps: | ||
tty: true | ||
image: qgis/qgis3-build-deps-bin-only:${DOCKER_TAG} | ||
volumes: | ||
- ${GH_WORKSPACE}:/root/QGIS | ||
links: | ||
- oracle | ||
env_file: | ||
- docker-variables.env |
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,22 @@ | ||
version: '3' | ||
services: | ||
postgres: | ||
build: | ||
dockerfile: Dockerfile-postgis | ||
context: ../tests/testdata | ||
environment: | ||
- ALLOW_IP_RANGE="172.18.0.0/16" | ||
# The following files are added in Dockerfile-postgis | ||
- SSL_CERT_FILE=/etc/ssl/certs/postgres.crt | ||
- SSL_KEY_FILE=/etc/ssl/private/postgres.key | ||
- SSL_CA_FILE=/etc/ssl/certs/qgis_ca.crt | ||
|
||
qgis-deps: | ||
tty: true | ||
image: qgis/qgis3-build-deps-bin-only:${DOCKER_TAG} | ||
volumes: | ||
- ${GH_WORKSPACE}:/root/QGIS | ||
links: | ||
- postgres | ||
env_file: | ||
- docker-variables.env |
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
Oops, something went wrong.