-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
54 lines (42 loc) · 1.44 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
deploy:
- provider: NuGet
api_key:
secure: tb8mXs1vxgjA5zmrx5JZqpxqHpDQltFTJ1ldpHNb+JPI0WytKILZ/IkegZATe4Aq
on:
branch: master
environment:
build_version: ''
skip_tags: true
image: Visual Studio 2019
configuration: Release
install:
- ps: |
$env:build_version = Get-Content ".version"
Update-AppveyorBuild -Version "$env:build_version-preview-$env:appveyor_build_number"
dotnet tool install -g InheritDocTool
before_build:
- ps: . .\patch-version.ps1 "src\trybot.csproj" $env:build_version $env:appveyor_build_version
build_script:
- msbuild /t:Restore /p:Configuration=%configuration% trybot.sln
- msbuild /t:Build /p:Configuration=%configuration% /p:ContinuousIntegrationBuild=true trybot.sln
after_build:
- inheritdoc -o
- msbuild /t:Pack /p:IncludeSymbols=true /p:Configuration=%configuration% /p:PackageOutputPath=..\artifacts src\trybot.csproj
test_script:
- dotnet test test\trybot.tests.csproj -f net45 -c %configuration% --no-build
- dotnet test test\trybot.tests.csproj -f netcoreapp3.1 -c %configuration% --no-build
after_test:
- ps: . .\set-debug-type.ps1 "src\trybot.csproj"
- ps: . .\coverage.ps1
artifacts:
- path: artifacts\Trybot.*.nupkg
name: NuGet
- path: artifacts\Trybot.*.snupkg
name: NuGet Symbol Packages
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: true
on_build_status_changed: true