Skip to content

Commit dff5944

Browse files
author
Bart Koelman
authored
Updated PostgreSQL to v13.4 (#1072)
* Updated PostgreSQL to v13.4 and log its version. Consolidated shell invocations into one, which is a bit faster. * Applied suggestion from https://help.appveyor.com/discussions/problems/30239-postgres-fails-to-connect-after-version-change
1 parent 69bb428 commit dff5944

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

appveyor.yml

+18-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ image:
44

55
version: '{build}'
66

7-
stack: postgresql
7+
stack: postgresql 13.4
88

99
environment:
1010
PGUSER: postgres
@@ -34,7 +34,10 @@ for:
3434
only:
3535
- image: Visual Studio 2019
3636
services:
37-
- postgresql101
37+
- postgresql134
38+
# https://help.appveyor.com/discussions/problems/30239-postgres-fails-to-connect-after-version-change
39+
init:
40+
- net start postgresql-x64-13
3841
# REF: https://github.com/docascode/docfx-seed/blob/master/appveyor.yml
3942
before_build:
4043
- pwsh: |
@@ -92,7 +95,18 @@ for:
9295
appveyor_repo_tag: true
9396

9497
build_script:
95-
- pwsh: dotnet --version
96-
- pwsh: .\Build.ps1
98+
- pwsh: |
99+
Write-Output ".NET version:"
100+
dotnet --version
101+
102+
Write-Output "PostgreSQL version:"
103+
if ($IsWindows) {
104+
. "${env:ProgramFiles}\PostgreSQL\13\bin\psql" --version
105+
}
106+
else {
107+
psql --version
108+
}
109+
110+
.\Build.ps1
97111
98112
test: off

run-docker-postgres.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ docker run --rm --name jsonapi-dotnet-core-testing `
99
-e POSTGRES_USER=postgres `
1010
-e POSTGRES_PASSWORD=postgres `
1111
-p 5432:5432 `
12-
postgres:12.0
12+
postgres:13.4

0 commit comments

Comments
 (0)