forked from serilog-contrib/serilog-sinks-graylog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
83 lines (68 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
81
82
83
-
branches:
except:
- release
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 2017
build_script:
- cmd: dotnet restore -v m ./src/serilog-sinks-graylogvs2017.sln
- cmd: dotnet build -v m -c Debug ./src/serilog-sinks-graylogvs2017.sln
- cmd: dotnet pack -v m --include-symbols --no-build -o ../../artifacts --version-suffix Beta ./src/Serilog.Sinks.Graylog/Serilog.Sinks.Graylog.csproj
- cmd: dotnet pack -v m --include-symbols --no-build -o ../../artifacts --version-suffix Beta ./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:
- release
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
configuration: Release
image: Visual Studio 2017
build_script:
- cmd: dotnet restore -v m ./src/serilog-sinks-graylogvs2017.sln
- cmd: dotnet build -v m -c Release ./src/serilog-sinks-graylogvs2017.sln
- cmd: dotnet pack -v m --include-source --no-build -o ../../artifacts ./src/Serilog.Sinks.Graylog/Serilog.Sinks.Graylog.csproj
- cmd: dotnet pack -v m --include-source --no-build -o ../../artifacts ./src/Serilog.Sinks.Graylog.Batching/Serilog.Sinks.Graylog.Batching.csproj
test:
categories:
except:
- Integration
artifacts:
- path: "./artifacts/*.nupkg"
deploy:
provider: NuGet
api_key:
secure: IHVAasaX8yvwCHeCI/mBgWBRzLNlOpRn3yJnZFyslzTnJpELyxKDaKM5y/LN0zsl
skip_symbols: false
artifact: /.*\.nupkg/