-
Notifications
You must be signed in to change notification settings - Fork 68
/
appveyor.yml
80 lines (65 loc) · 2.77 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
70
71
72
73
74
75
76
77
78
79
80
-
branches:
except:
- master
init:
- cmd: "set branch=%APPVEYOR_REPO_BRANCH%"
- cmd: "echo branch:%branch%"
- cmd: "set newVersion=1.0.%APPVEYOR_BUILD_NUMBER%-%branch%"
- cmd: "echo newVersion:%newVersion%"
- cmd: "set versonSuffix=%APPVEYOR_BUILD_NUMBER%-%branch%"
- cmd: "echo versonSuffix:%versonSuffix%"
- cmd: appveyor UpdateBuild -Version "%newVersion%"
skip_tags: true
before_build:
- nuget install OpenCover -ExcludeVersion -OutputDirectory "packages"
- choco install opencover.portable
- choco install codecov
- cmd: dotnet tool install --global altcover.global
configuration: Debug
image: Visual Studio 2022
build_script:
- cmd: dotnet restore -v n ./src/serilog-sinks-graylog.sln
- cmd: dotnet build -v n -c Debug ./src/serilog-sinks-graylog.sln
- cmd: dotnet pack -v n --include-symbols --include-source -o "./artifacts" --version-suffix Beta -p:SymbolPackageFormat=snupkg ./src/Serilog.Sinks.Graylog/Serilog.Sinks.Graylog.csproj
- cmd: dotnet pack -v n --include-symbols --include-source -o "./artifacts" --version-suffix Beta -p:SymbolPackageFormat=snupkg ./src/Serilog.Sinks.Graylog.Batching/Serilog.Sinks.Graylog.Batching.csproj
test:
categories:
except:
- Integration
test_script:
- dotnet test ./src/Serilog.Sinks.Graylog.Core.Tests --filter Category!=Integration /p:AltCover=true
- dotnet test ./src/Serilog.Sinks.Graylog.Tests --filter Category!=Integration /p:AltCover=true
after_test:
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "./src/Serilog.Sinks.Graylog.Core.Tests/coverage.xml" -t cd3f1ab1-60c6-4848-824b-466b93321d96
- codecov -f "./src/Serilog.Sinks.Graylog.Tests/coverage.xml" -t cd3f1ab1-60c6-4848-824b-466b93321d96
artifacts:
- path: "./artifacts/*.*"
-
branches:
only:
- master
configuration: Release
image: Visual Studio 2022
build:
publish_nuget_symbols: true
use_snupkg_format: true
build_script:
- cmd: dotnet restore -v n ./src/serilog-sinks-graylog.sln
- cmd: dotnet build -v n -c Release ./src/serilog-sinks-graylog.sln
- cmd: dotnet pack -v n --include-symbols --include-source -o "./artifacts" -p:SymbolPackageFormat=snupkg ./src/Serilog.Sinks.Graylog/Serilog.Sinks.Graylog.csproj
- cmd: dotnet pack -v n --include-symbols --include-source -o "./artifacts" -p:SymbolPackageFormat=snupkg ./src/Serilog.Sinks.Graylog.Batching/Serilog.Sinks.Graylog.Batching.csproj
test:
categories:
except:
- Integration
artifacts:
- path: "./artifacts/*.*"
deploy:
provider: NuGet
api_key:
secure: J4E+ROQN+2v19RntNXpjllr1nAy/Q0tEW69Cav2ru+sYhMsvNpjOjPPd6ZoMmtf8
skip_symbols: false
artifact: /.*.*