forked from npgsql/efcore.pg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.appveyor.yml
More file actions
40 lines (39 loc) · 1.52 KB
/
.appveyor.yml
File metadata and controls
40 lines (39 loc) · 1.52 KB
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
image: Visual Studio 2017 Preview
version: 2.1.0-{build}
services:
- postgresql
environment:
global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
Test__Npgsql__DefaultConnection: Host=localhost;Database=postgres;Username=postgres;Password=Password12!
cache:
- '%USERPROFILE%\.nuget\packages -> **\*.csproj'
shallow_clone: true
install:
- ps: $env:padded_build_number = $env:appveyor_build_number.PadLeft(5, '0')
# Install .NET Core 2.0
- 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.0.3
before_build:
- dotnet --info
- appveyor-retry dotnet restore -v Minimal
build_script:
- msbuild /p:Configuration=Debug
- msbuild /p:Configuration=Release
- dotnet pack src\EFCore.PG\EFCore.PG.csproj -c Release --version-suffix ci-%PADDED_BUILD_NUMBER%
test_script:
- dotnet test test\EFCore.PG.Tests\EFCore.PG.Tests.csproj
- dotnet test test\EFCore.PG.FunctionalTests\EFCore.PG.FunctionalTests.csproj
- dotnet test test\EFCore.PG.Design.FunctionalTests\EFCore.PG.Design.FunctionalTests.csproj
artifacts:
- path: 'src\EFCore.PG\bin\**\*.nupkg'
deploy:
- provider: NuGet
server: https://www.myget.org/F/npgsql-unstable/api/v2/package
api_key:
secure: kiMn9uBvgMa5EtEmTIhNBFUfyatiATnhkgx5Xj/1EsmKTtEkUv+hJAQs0L3VGzPw
artifact: /.*\.nupkg/
skip_symbols: true
#skip_symbols: false
#symbol_server: https://your.symbol.server/feed