Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Try resurrecting sql server tests on ci
- Loading branch information
Showing
with
19 additions
and
26 deletions.
-
+0
−4
.ci/test_blocklist.txt
-
+0
−3
.ci/test_flaky.txt
-
+19
−19
.docker/docker-qgis-test.sh
|
@@ -20,8 +20,4 @@ qgis_openclutilstest |
|
|
# Relies on a broken/unreliable 3rd party service |
|
|
qgis_layerdefinition |
|
|
|
|
|
# MSSQL requires the MSSQL docker |
|
|
PyQgsProviderConnectionMssql |
|
|
|
|
|
|
|
|
|
|
@@ -4,6 +4,3 @@ qgis_wcsprovidertest |
|
|
PyQgsWFSProviderGUI |
|
|
qgis_ziplayertest |
|
|
|
|
|
# Flaky, the ms odbc driver crashes a lot on the ubuntu docker image. Retest when |
|
|
# the docker base image is upgraded |
|
|
PyQgsMssqlProvider |
|
@@ -86,31 +86,31 @@ fi |
|
|
# Restore SQL Server test data |
|
|
############################## |
|
|
|
|
|
# echo "Importing 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 SQLUSER=sa |
|
|
export SQLHOST=mssql |
|
|
export SQLPORT=1433 |
|
|
export SQLPASSWORD='<YourStrong!Passw0rd>' |
|
|
export SQLDATABASE=qgis_test |
|
|
|
|
|
# export PATH=$PATH:/opt/mssql-tools/bin |
|
|
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 |
|
|
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" |
|
|
echo "Setting up DSN for test SQL Server" |
|
|
|
|
|
# cat <<EOT > /etc/odbc.ini |
|
|
# [ODBC Data Sources] |
|
|
# testsqlserver = ODBC Driver 17 for 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 |
|
|
[testsqlserver] |
|
|
Driver = ODBC Driver 17 for SQL Server |
|
|
Description = Test SQL Server |
|
|
Server = mssql |
|
|
EOT |
|
|
|
|
|
########### |
|
|
# Run tests |
|
|