-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'mainstream/master' into distribute-equi…
…spaced2
- Loading branch information
Showing
25 changed files
with
226 additions
and
232 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,24 @@ | ||
version: '3' | ||
services: | ||
postgres: | ||
image: kartoza/postgis:9.5-2.2 | ||
environment: | ||
- ALLOW_IP_RANGE="172.18.0.0/16" | ||
|
||
mssql: | ||
image: microsoft/mssql-server-linux:2017-latest | ||
environment: | ||
ACCEPT_EULA: Y | ||
SA_PASSWORD: <YourStrong!Passw0rd> | ||
|
||
qgis-deps: | ||
tty: true | ||
image: qgis_image | ||
volumes: | ||
- ${TRAVIS_BUILD_DIR}:/root/QGIS | ||
links: | ||
- postgres | ||
- mssql | ||
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,23 @@ | ||
|
||
# Env variables for Docker | ||
# These without assignment are taken from the host env variabbles | ||
|
||
# TRAVIS variables | ||
TRAVIS_AVAILABLE_TIME | ||
TRAVIS_TIMESTAMP | ||
TRAVIS_UPLOAD_TIME | ||
TRAVIS_BRANCH | ||
TRAVIS_PULL_REQUEST | ||
TRAVIS_OS_NAME | ||
TRAVIS_CONFIG | ||
TRAVIS | ||
|
||
# CTEST | ||
LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so | ||
SEGFAULT_SIGNALS="abrt segv" | ||
CTEST_BUILD_COMMAND=/usr/bin/ninja | ||
CTEST_PARALLEL_LEVEL=1 | ||
CTEST_BUILD_DIR=/root/QGIS | ||
|
||
# Other var | ||
QGIS_NO_OVERRIDE_IMPORT=1 |
This file was deleted.
Oops, something went wrong.
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
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,76 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# Temporarily uncomment to debug ccache issues | ||
# echo "travis_fold:start:ccache-debug" | ||
# cat /tmp/cache.debug | ||
# echo "travis_fold:end:ccache-debug" | ||
|
||
############################ | ||
# Restore postgres test data | ||
############################ | ||
printf "[qgis_test]\nhost=postgres\nport=5432\ndbname=qgis_test\nuser=docker\npassword=docker" > ~/.pg_service.conf | ||
export PGUSER=docker | ||
export PGHOST=postgres | ||
export PGPASSWORD=docker | ||
export PGDATABASE=qgis_test | ||
|
||
# wait for the DB to be available | ||
echo "Wait a moment while loading the database." | ||
while ! PGPASSWORD='docker' psql -h postgres -U docker -p 5432 -l &> /dev/null | ||
do | ||
printf "🐘" | ||
sleep 1 | ||
done | ||
echo " done 🥩" | ||
|
||
pushd /root/QGIS > /dev/null | ||
/root/QGIS/tests/testdata/provider/testdata_pg.sh | ||
popd > /dev/null # /root/QGIS | ||
|
||
############################## | ||
# Restore SQL Server test data | ||
############################## | ||
|
||
echo "Importing SQL Server test data..." | ||
|
||
export SQLUSER=sa | ||
export SQLHOST=mssql | ||
export SQLPORT=1433 | ||
export SQLPASSWORD='<YourStrong!Passw0rd>' | ||
export SQLDATABASE=qgis_test | ||
|
||
export PATH=$PATH:/opt/mssql-tools/bin | ||
|
||
pushd /root/QGIS > /dev/null | ||
/root/QGIS/tests/testdata/provider/testdata_mssql.sh | ||
popd > /dev/null # /root/QGIS | ||
|
||
echo "Setting up DSN for test SQL Server" | ||
|
||
cat <<EOT > /etc/odbc.ini | ||
[ODBC Data Sources] | ||
testsqlserver = ODBC Driver 17 for SQL Server | ||
[testsqlserver] | ||
Driver = ODBC Driver 17 for SQL Server | ||
Description = Test SQL Server | ||
Server = mssql | ||
EOT | ||
|
||
########### | ||
# Run tests | ||
########### | ||
CURRENT_TIME=$(date +%s) | ||
TIMEOUT=$((( TRAVIS_AVAILABLE_TIME - TRAVIS_UPLOAD_TIME) * 60 - CURRENT_TIME + TRAVIS_TIMESTAMP)) | ||
echo "Timeout: ${TIMEOUT}s (started at ${TRAVIS_TIMESTAMP}, current: ${CURRENT_TIME})" | ||
timeout ${TIMEOUT}s python3 /root/QGIS/.ci/travis/scripts/ctest2travis.py xvfb-run ctest -V -E "$(cat /root/QGIS/.ci/travis/linux/scripts/test_blacklist.txt | sed -r '/^(#.*?)?$/d' | paste -sd '|' -)" -S /root/QGIS/.ci/travis/travis.ctest --output-on-failure | ||
rv=$? | ||
if [ $rv -eq 124 ] ; then | ||
printf '\n\n${bold}Build and test timeout. Please restart the build for meaningful results.${endbold}\n' | ||
exit #$rv | ||
fi | ||
|
||
|
||
|
File renamed without changes.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.