forked from npgsql/npgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
64 lines (64 loc) · 2.57 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
image: Visual Studio 2017
version: 4.1.0-{build}
environment:
global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
NPGSQL_TEST_DB: Host=localhost;Database=postgres;Username=postgres;Password=Password12!
PGUSER: postgres
PGPASSWORD: Password12!
POSTGIS_EXE: postgis-bundle-pg10x64-setup-2.4.4-1.exe
NoPackageAnalysis: true # Suppresses warning about SemVer 2.0.0 version suffixes when packing
cache:
- '%USERPROFILE%\.nuget\packages -> **\*.csproj'
- 'C:\projects\npgsql\packages -> **\*.csproj' # For VSIX
- $(POSTGIS_EXE)
clone_depth: 10
install:
- powershell .build\setup_appveyor.ps1
# The following can be used to install a custom version of .NET Core
# - ps: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1" -OutFile "install-dotnet.ps1"
# - ps: .\install-dotnet.ps1 -Version 2.1.300 -InstallDir "dotnetcli"
services:
- postgresql101
before_build:
- '"C:\Program Files\PostgreSQL\10\bin\psql" -c "CREATE EXTENSION citext"'
- '"C:\Program Files\PostgreSQL\10\bin\psql" -c "CREATE EXTENSION postgis"'
- appveyor-retry dotnet restore -v Minimal Npgsql.sln
- appveyor-retry nuget restore src\VSIX\packages.config -SolutionDirectory . -Verbosity quiet -NonInteractive
build_script:
- dotnet build "test\Npgsql.Tests" -c Debug -f net452
- dotnet build "test\Npgsql.PluginTests" -c Debug -f net452
- msbuild src\VSIX\VSIX.csproj /p:Configuration=Release /v:Minimal
- msbuild src\MSI\MSI.wixproj /p:Configuration=Release /v:Minimal
after_build:
- dotnet pack src\Npgsql\Npgsql.csproj -c Release
- dotnet pack src\Npgsql.Json.NET\Npgsql.Json.NET.csproj -c Release
- dotnet pack src\Npgsql.NodaTime\Npgsql.NodaTime.csproj -c Release
- dotnet pack src\Npgsql.LegacyPostgis\Npgsql.LegacyPostgis.csproj -c Release
- dotnet pack src\Npgsql.RawPostgis\Npgsql.RawPostgis.csproj -c Release
- dotnet pack src\Npgsql.NetTopologySuite\Npgsql.NetTopologySuite.csproj -c Release
test:
assemblies:
- test\Npgsql.Tests\bin\Debug\net452\Npgsql.Tests.dll
- test\Npgsql.PluginTests\bin\Debug\net452\Npgsql.PluginTests.dll
artifacts:
- path: 'src\**\*.nupkg'
name: Nuget
- path: 'src\VSIX\bin\**\*.vsix'
name: Visual Studio Extension
- path: 'src\MSI\bin\**\*.msi'
name: MSI Installer
deploy:
- provider: Environment
name: MyGet Unstable
on:
deploy_myget_unstable: true
- provider: Environment
name: MyGet Stable
on:
deploy_myget_stable: true
- provider: Environment
name: Npgsql Github
on:
deploy_github_release: true