Skip to content

Commit

Permalink
[Appveyor] PG 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Mar 21, 2017
1 parent 1859695 commit ab9e07e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Expand Up @@ -7,7 +7,7 @@ environment:
NPGSQL_TEST_DB: Host=localhost;Database=postgres;Username=postgres;Password=Password12!
PGUSER: postgres
PGPASSWORD: Password12!
POSTGIS_EXE: postgis-bundle-pg95x64-setup-2.3.2-1.exe
POSTGIS_EXE: postgis-bundle-pg96x64-setup-2.3.2-1.exe
cache:
- '%USERPROFILE%\.nuget\packages -> **\*.csproj'
- 'C:\projects\npgsql\packages -> **\*.csproj' # For VSIX
Expand All @@ -18,7 +18,7 @@ install:
services:
- postgresql
before_build:
- '"C:\Program Files\PostgreSQL\9.5\bin\psql" -c "CREATE EXTENSION postgis"'
- '"C:\Program Files\PostgreSQL\9.6\bin\psql" -c "CREATE EXTENSION postgis"'
- appveyor-retry dotnet restore -v Minimal
- appveyor-retry nuget restore Npgsql.sln # For VSIX
build_script:
Expand Down
10 changes: 5 additions & 5 deletions .build/setup-pg.ps1
@@ -1,14 +1,14 @@

Write-Host Enabling PostgreSQL prepared transactions...
Add-Content 'C:\Program Files\PostgreSQL\9.5\data\postgresql.conf' "`nmax_prepared_transactions = 10"
Add-Content 'C:\Program Files\PostgreSQL\9.6\data\postgresql.conf' "`nmax_prepared_transactions = 10"

Write-Host Enabling PostgreSQL SSL...
Add-Content 'C:\Program Files\PostgreSQL\9.5\data\postgresql.conf' "`nssl = true"
Copy-Item .build\server.* "C:\Program Files\PostgreSQL\9.5\data"
Add-Content 'C:\Program Files\PostgreSQL\9.6\data\postgresql.conf' "`nssl = true"
Copy-Item .build\server.* "C:\Program Files\PostgreSQL\9.6\data"

Write-Host Enabling PostGIS...
If (!(Test-Path $env:POSTGIS_EXE)) {
Write-Host Downloading PostGIS...
(New-Object Net.WebClient).DownloadFile("http://download.osgeo.org/postgis/windows/pg95/$env:POSTGIS_EXE", "$env:POSTGIS_EXE")
(New-Object Net.WebClient).DownloadFile("http://download.osgeo.org/postgis/windows/pg96/$env:POSTGIS_EXE", "$env:POSTGIS_EXE")
}
iex ".\$env:POSTGIS_EXE /S /D='C:\Program Files\PostgreSQL\9.5'"
iex ".\$env:POSTGIS_EXE /S /D='C:\Program Files\PostgreSQL\9.6'"

0 comments on commit ab9e07e

Please sign in to comment.