-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
69 lines (57 loc) · 2.19 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
65
66
67
68
69
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
version: 1.0.{build}
image: Visual Studio 2019
configuration: Release
platform: Any CPU
dotnet_csproj:
patch: true
file: '**\*.csproj'
# version: '%GitVersion_FullSemVer%'
version: '%GitVersion_NuGetVersion%'
# package_version: '%GitVersion_LegacySemVerPadded%'
package_version: '%GitVersion_NuGetVersion%'
informational_version: '%GitVersion_InformationalVersion%'
install:
# install giversion.
# gitversion will set some appveyor settings with version information
- choco install gitversion.portable --version 4.0.1-beta1-29 --pre -y
- echo APPVEYOR_REPO_BRANCH %APPVEYOR_REPO_BRANCH%
- echo APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH %APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH%
- cmd: IF [%APPVEYOR_PULL_REQUEST_NUMBER%]==[] (
C:\ProgramData\chocolatey\lib\gitversion.portable\tools\gitversion.exe /output buildserver /b %APPVEYOR_REPO_BRANCH% /c %APPVEYOR_REPO_COMMIT%
) ELSE (
C:\ProgramData\chocolatey\lib\gitversion.portable\tools\gitversion.exe /output buildserver /c %APPVEYOR_REPO_COMMIT%
)
before_build:
- dotnet restore
build_script:
- dotnet build
after_build:
#
before_test:
# install opencover and codecov for exporting the coverage results.
- choco install opencover.portable
- choco install codecov
test_script:
- C:\ProgramData\chocolatey\lib\opencover.portable\tools\OpenCover.Console.exe -register:user -target:dotnet.exe -targetargs:"test src/Z85e.Test/Z85e.Test.csproj --filter Category!=SystemTest" -oldstyle -filter:"+[CoenM*]* -[CoenM*.Test]*" -hideskipped:Filter -returntargetcode -mergeoutput -output:".\coverage-dotnet.xml"
after_test:
# - codecov -f coverage-dotnet.xml
- ps: .scripts\pack.ps1
artifacts:
- path: '**\*.nupkg'
name: NuGet Packages
- path: '**\*.snupkg'
name: NuGet Symbols Packages
deploy:
- provider: NuGet
name: pre-release
server: https://www.myget.org/F/coenm/api/v2/package
api_key:
secure: t8JtzPkpHidqOii+bLuSiOKgqzsdoSCBI3Sc/Uy6D9jWfxNd7zUUhhTgGHj5rpV9
skip_symbols: true
# symbol_server: https://www.myget.org/F/coenm/symbols/api/v2/package
artifact: /.*\.nupkg/
on:
branch: /(master|release.*|develop)/