forked from hangfire-postgres/Hangfire.PostgreSql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (30 loc) · 1.2 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '0.0.0.{build}'
image: Visual Studio 2022
platform: Any CPU
environment:
matrix:
- BUILD_NPGSQL_VERSION: 5
- BUILD_NPGSQL_VERSION: 6
init:
- ps: >-
# Change default database session timezone from UTC to catch potential DateTime/timestamp
# column conversion issues during unit test runs under CI
# See https://github.com/frankhommers/Hangfire.PostgreSql/issues/221#issuecomment-1001277778
Add-Content "c:\program files\postgresql\9.6\data\postgresql.conf" "timezone = 'UTC+13'"
Set-Content "c:\program files\postgresql\9.6\data\pg_hba.conf" "host all all ::1/128 trust"
Add-Content "c:\program files\postgresql\9.6\data\pg_hba.conf" "host all all 127.0.0.1/32 trust"
$env:Path += ";c:\program files\postgresql\9.6\bin"
services: postgresql
build_script:
- ps: >-
psql -U postgres -c "CREATE ROLE appveyor LOGIN SUPERUSER CREATEDB CREATEROLE;"
psql -U postgres -c "SHOW TIME ZONE;"
createdb hangfire_tests
.\build.ps1 -t Pack -NpgsqlVersion $env:BUILD_NPGSQL_VERSION
cache:
- tools -> build.cake
- tools -> build.ps1
artifacts:
- path: publish\*.nupkg
name: NuPkgs
test: off