-
Notifications
You must be signed in to change notification settings - Fork 110
/
appveyor.yml
39 lines (35 loc) · 1.58 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
version: v{build}
os: Visual Studio 2019
assembly_info:
patch: false
environment:
TestGenericConnectionString: Server=(local)\SQL2017;Database=TrackerEnabledDbContextTests;User ID=sa;Password=Password12!;MultipleActiveResultSets=true;
TestIdentityConnectionString: Server=(local)\SQL2017;Database=TrackerEnabledDbContextIdentityTests;User ID=sa;Password=Password12!;MultipleActiveResultSets=true;
API_KEY:
secure: 3VVZa5Re9wO4iminljj/HKsta69CrLSi8YdAUnEEVZnaE3ZqKSGW1nbJKeIaFXi4
services: mssql2017
before_build:
- cmd: nuget restore
build:
verbosity: minimal
before_package:
- ps: if ($env:APPVEYOR_REPO_TAG -eq $TRUE) { nuget pack .\TrackerEnabledDbContext\TrackerEnabledDbContext.csproj -OutputDirectory $env:APPVEYOR_BUILD_FOLDER\artifacts -Version $env:APPVEYOR_REPO_TAG_NAME }
- ps: if ($env:APPVEYOR_REPO_TAG -eq $TRUE) { nuget pack .\TrackerEnabledDbContext.Common\TrackerEnabledDbContext.Common.csproj -OutputDirectory $env:APPVEYOR_BUILD_FOLDER\artifacts -Version $env:APPVEYOR_REPO_TAG_NAME }
- ps: if ($env:APPVEYOR_REPO_TAG -eq $TRUE) { nuget pack .\TrackerEnabledDbContext.Identity\TrackerEnabledDbContext.Identity.csproj -OutputDirectory $env:APPVEYOR_BUILD_FOLDER\artifacts -Version $env:APPVEYOR_REPO_TAG_NAME }
deploy:
provider: NuGet
api_key: $(API_KEY)
skip_symbols: false
artifact: /.*\.nupkg/
on:
appveyor_repo_tag: true
artifacts:
- path: '**\artifacts\*.nupkg'
name: packages
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: true
on_build_status_changed: false