forked from npgsql/efcore.pg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
49 lines (49 loc) · 1.87 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
image: Visual Studio 2017
version: 3.0.0-{build}
services:
- postgresql101
environment:
global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
Test__Npgsql__DefaultConnection: Host=localhost;Database=postgres;Username=postgres;Password=Password12!
PGUSER: postgres
PGPASSWORD: Password12!
POSTGIS_EXE: postgis-bundle-pg10x64-setup-2.5.0-1.exe
NoPackageAnalysis: true # Suppresses warning about SemVer 2.0.0 version suffixes when packing
cache:
- '%USERPROFILE%\.nuget\packages -> **\*.csproj'
- $(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.2.100
#
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
before_build:
- appveyor-retry dotnet restore -v Minimal
build_script:
- dotnet pack src\EFCore.PG\EFCore.PG.csproj -c Release
- dotnet pack src\EFCore.PG.NodaTime\EFCore.PG.NodaTime.csproj -c Release
- dotnet pack src\EFCore.PG.NTS\EFCore.PG.NTS.csproj -c Release
test_script:
- dotnet test test\EFCore.PG.Tests\EFCore.PG.Tests.csproj
- dotnet test test\EFCore.PG.Plugins.FunctionalTests\EFCore.PG.Plugins.FunctionalTests.csproj
- dotnet test test\EFCore.PG.FunctionalTests\EFCore.PG.FunctionalTests.csproj
artifacts:
- path: 'src\**\*.nupkg'
deploy:
- provider: Environment
name: MyGet Unstable
on:
deploy_myget_unstable: true
- provider: Environment
name: MyGet Stable
on:
deploy_myget_stable: true
- provider: Environment
name: EFCore.PG Github
on:
deploy_github_release: true