File tree Expand file tree Collapse file tree 4 files changed +28
-14
lines changed
test/Serilog.Sinks.File.Tests Expand file tree Collapse file tree 4 files changed +28
-14
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,28 @@ Push-Location $PSScriptRoot
22
33if (Test-Path .\artifacts) { Remove-Item .\artifacts - Force - Recurse }
44
5- & dotnet restore
5+ & dotnet restore -- no - cache
66
7- $revision = @ { $true = $env: APPVEYOR_BUILD_NUMBER ; $false = 1 }[$env: APPVEYOR_BUILD_NUMBER -ne $NULL ];
7+ $branch = $ (git symbolic- ref -- short - q HEAD)
8+ $revision = @ { $true = $env: APPVEYOR_BUILD_NUMBER ; $false = " local" }[$env: APPVEYOR_BUILD_NUMBER -ne $NULL ];
9+ $suffix = @ { $true = " " ; $false = " $branch -$revision " }[$branch -eq " master" -and $revision -ne " local" ]
810
9- Push-Location src/ Serilog.Sinks.File
11+ foreach ($src in ls src/ Serilog.* ) {
12+ Push-Location $src
1013
11- & dotnet pack - c Release - o ..\..\.\artifacts -- version- suffix= $revision
12- if ($LASTEXITCODE -ne 0 ) { exit 1 }
14+ & dotnet pack - c Release - o ..\..\.\artifacts -- version- suffix= $suffix
15+ if ($LASTEXITCODE -ne 0 ) { exit 1 }
1316
14- Pop-Location
15- Push-Location test / Serilog.Sinks.File.Tests
17+ Pop-Location
18+ }
1619
17- & dotnet test - c Release
18- if ($LASTEXITCODE -ne 0 ) { exit 2 }
20+ foreach ($test in ls test/ Serilog.* .Tests) {
21+ Push-Location $test
22+
23+ & dotnet test - c Release
24+ if ($LASTEXITCODE -ne 0 ) { exit 2 }
25+
26+ Pop-Location
27+ }
1928
20- Pop-Location
2129Pop-Location
Original file line number Diff line number Diff line change 11version : ' {build}'
2+ skip_tags : true
23image : Visual Studio 2015
34configuration : Release
45install :
@@ -18,5 +19,11 @@ deploy:
1819 secure : nvZ/z+pMS91b3kG4DgfES5AcmwwGoBYQxr9kp4XiJHj25SAlgdIxFx++1N0lFH2x
1920 skip_symbols : true
2021 on :
21- branch : /^(dev|master)$/
22-
22+ branch : /^(master|dev)$/
23+ - provider : GitHub
24+ auth_token :
25+ secure : ggZTqqV1z0xecDoQbeoy3A7xikShCt9FWZIGp95dG9Fo0p5RAT9oGU0ZekHfUIwk
26+ artifact : /Serilog.*\.nupkg/
27+ tag : v$(appveyor_build_version)
28+ on :
29+ branch : master
Original file line number Diff line number Diff line change 11{
2- "version" : " 2.0.0 " ,
2+ "version" : " 2.1.0-* " ,
33 "description" : " The file sink for Serilog" ,
44 "authors" : [ " Serilog Contributors" ],
55 "packOptions" : {
Original file line number Diff line number Diff line change 11{
2- "version" : " 2.0.0" ,
32 "testRunner" : " xunit" ,
43 "dependencies" : {
54 "Serilog.Sinks.File" : { "target" : " project" },
You can’t perform that action at this time.
0 commit comments