-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
33 lines (29 loc) · 1.59 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
version: 1.8.0-build.{build}
image:
- Visual Studio 2019
environment:
MYGET_FEED: https://www.myget.org/F/collections-net/api/v2/package
MYGET_API_KEY:
secure: j4h+o37uqm7LmUncRqQ7KA/M6dBZVo07idthknTFF/k1aVO+MbfT1EecNEJqjPoR
MYGET_SYMBOLS_FEED: https://www.myget.org/F/collections-net/symbols/api/v2/package
MYGET_SYMBOLS_API_KEY:
secure: j4h+o37uqm7LmUncRqQ7KA/M6dBZVo07idthknTFF/k1aVO+MbfT1EecNEJqjPoR
NUGET_FEED: https://api.nuget.org/v3/index.json
NUGET_API_KEY:
secure: 055huZhAN+6nzYY39jc+7cOiRVQuZlxoQ9JFJUH5wMIlAMD6smHb1pQqDuyX03PR
NUGET_PACKAGE_VERSION: 1.7.0
CODECOV_TOKEN: 5ad613f1-0623-451d-b889-2c6020f132f4
install:
- pwsh: choco install codecov
build_script:
- pwsh: dotnet build -c Release
test_script:
- pwsh: >-
dotnet test --blame ./tests/Collection.Tests/Collection.Tests.csproj /p:CollectCoverage=true /p:Exclude=\"[xunit.*]*\" /p:CoverletOutputFormat=opencover
codecov -f "./tests/Collection.Tests/coverage.opencover.xml"
deploy_script:
- pwsh: >-
dotnet pack ./src/Collections/Collections.csproj --include-symbols --include-source -c Release /p:Version=$env:APPVEYOR_BUILD_VERSION
dotnet nuget push ./src/Collections/bin/Release/Collections.NET.$env:APPVEYOR_BUILD_VERSION.nupkg -s $env:MYGET_FEED -k $env:MYGET_API_KEY -ss $env:MYGET_SYMBOLS_FEED -sk $env:MYGET_SYMBOLS_API_KEY
dotnet pack ./src/Collections/Collections.csproj --include-symbols --include-source -c Release /p:Version=$env:NUGET_PACKAGE_VERSION
dotnet nuget push ./src/Collections/bin/Release/Collections.NET.$env:NUGET_PACKAGE_VERSION.nupkg -s $env:NUGET_FEED -k $env:NUGET_API_KEY