Skip to content

Commit bcb28ba

Browse files
author
Peet Whittaker
committed
Disable CI tests for PostGIS as PostGIS 1.x is not compatible with Npgsql 4 / NTS PostGIS plugin
1 parent 8acbdda commit bcb28ba

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

appveyor.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ install:
3737
# - ps: if ($isWindows) { (Get-Content $iniPath).replace('port=3306', 'port=3307') | Set-Content $iniPath }
3838

3939
# install PostgreSQL 8.4
40-
- cmd: curl -L -O -S -s https://get.enterprisedb.com/postgresql/postgresql-8.4.22-1-windows.exe
41-
- cmd: postgresql-8.4.22-1-windows.exe --mode unattended --superpassword Password12! --serverport 5431
40+
# - cmd: curl -L -O -S -s https://get.enterprisedb.com/postgresql/postgresql-8.4.22-1-windows.exe
41+
# - cmd: postgresql-8.4.22-1-windows.exe --mode unattended --superpassword Password12! --serverport 5431
4242

4343
# install PostGIS 1.5.5 for PostgreSQL 8.4
44-
- cmd: curl -L -O -S -s http://download.osgeo.org/postgis/windows/pg84/postgis-pg84-binaries-1.5.5.zip
45-
- cmd: 7z x postgis-pg84-binaries-1.5.5.zip > nul
46-
- cmd: xcopy /s /y /q postgis-pg84-binaries-1.5.5 "C:\Program Files (x86)\PostgreSQL\8.4"
47-
- cmd: SET PGPASSWORD=Password12!
48-
- cmd: SET PGDIR=C:\Program Files (x86)\PostgreSQL\8.4
49-
- cmd: SET PATH=%PGDIR%\bin;%PATH%
50-
- cmd: createdb -p 5431 -U postgres template_postgis
51-
- cmd: psql -q -p 5431 -U postgres -d template_postgis -f "%PGDIR%\share\contrib\postgis-1.5\postgis.sql"
52-
- cmd: psql -q -p 5431 -U postgres -d template_postgis -f "%PGDIR%\share\contrib\postgis-1.5\spatial_ref_sys.sql"
44+
# - cmd: curl -L -O -S -s http://download.osgeo.org/postgis/windows/pg84/postgis-pg84-binaries-1.5.5.zip
45+
# - cmd: 7z x postgis-pg84-binaries-1.5.5.zip > nul
46+
# - cmd: xcopy /s /y /q postgis-pg84-binaries-1.5.5 "C:\Program Files (x86)\PostgreSQL\8.4"
47+
# - cmd: SET PGPASSWORD=Password12!
48+
# - cmd: SET PGDIR=C:\Program Files (x86)\PostgreSQL\8.4
49+
# - cmd: SET PATH=%PGDIR%\bin;%PATH%
50+
# - cmd: createdb -p 5431 -U postgres template_postgis
51+
# - cmd: psql -q -p 5431 -U postgres -d template_postgis -f "%PGDIR%\share\contrib\postgis-1.5\postgis.sql"
52+
# - cmd: psql -q -p 5431 -U postgres -d template_postgis -f "%PGDIR%\share\contrib\postgis-1.5\spatial_ref_sys.sql"
5353

5454
# install PostGIS 2.3.2 for PostgreSQL 9.6 on Windows
5555
- cmd: curl -L -O -S -s http://download.osgeo.org/postgis/windows/pg96/archive/postgis-bundle-pg96-2.3.2x64.zip
@@ -106,12 +106,13 @@ before_test:
106106
# - cmd: '%mysql% -P 3307 -u root < Tests.NHibernate.Spatial.MySQL57\nhsp_test.sql'
107107

108108
# setup PostgreSQL 8.4
109-
- cmd: SET psql="C:\Program Files (x86)\PostgreSQL\8.4\bin\psql.exe"
110-
- cmd: '%psql% -q -p 5431 -U postgres -f Tests.NHibernate.Spatial.PostGis\nhsp_test.sql'
109+
# - cmd: SET psql="C:\Program Files (x86)\PostgreSQL\8.4\bin\psql.exe"
110+
# - cmd: '%psql% -q -p 5431 -U postgres -f Tests.NHibernate.Spatial.PostGis\nhsp_test.sql'
111111

112112
# setup PostgreSQL 9.6 on Windows
113113
- cmd: net start postgresql-x64-9.6
114114
- cmd: SET psql="C:\Program Files\PostgreSQL\9.6\bin\psql.exe"
115+
- cmd: SET PGPASSWORD=Password12!
115116
- cmd: '%psql% -q -p 5432 -U postgres -f Tests.NHibernate.Spatial.PostGis20\nhsp_test.sql'
116117

117118
# setup PostgreSQL 9.6 on Ubuntu
@@ -125,7 +126,7 @@ test_script:
125126
# Disable MySQL tests until issue #87 is resolved
126127
# - cmd: dotnet test -c Release --no-build --logger "trx;LogFileName=MySQL.trx" --results-directory %APPVEYOR_BUILD_FOLDER% Tests.NHibernate.Spatial.MySQL
127128
# - cmd: dotnet test -c Release --no-build --logger "trx;LogFileName=MySQL57.trx" --results-directory %APPVEYOR_BUILD_FOLDER% Tests.NHibernate.Spatial.MySQL57
128-
- cmd: dotnet test -c Release --no-build --logger "trx;LogFileName=PostGis.trx" --results-directory %APPVEYOR_BUILD_FOLDER% Tests.NHibernate.Spatial.PostGis
129+
# - cmd: dotnet test -c Release --no-build --logger "trx;LogFileName=PostGis.trx" --results-directory %APPVEYOR_BUILD_FOLDER% Tests.NHibernate.Spatial.PostGis
129130
- ps: dotnet test -c Release --no-build --logger "trx;LogFileName=PostGis20.trx" --results-directory $env:APPVEYOR_BUILD_FOLDER Tests.NHibernate.Spatial.PostGis20
130131

131132
after_test:
@@ -135,5 +136,5 @@ after_test:
135136
- ps: if ($isWindows) { $wc.UploadFile($uri, (Resolve-Path MsSql2012.trx)) }
136137
# - ps: $wc.UploadFile($uri, (Resolve-Path MySQL.trx))
137138
# - ps: $wc.UploadFile($uri, (Resolve-Path MySQL57.trx))
138-
- ps: if ($isWindows) { $wc.UploadFile($uri, (Resolve-Path PostGis.trx)) }
139+
# - ps: if ($isWindows) { $wc.UploadFile($uri, (Resolve-Path PostGis.trx)) }
139140
- ps: $wc.UploadFile($uri, (Resolve-Path PostGis20.trx))

0 commit comments

Comments
 (0)