This repository was archived by the owner on Dec 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed
Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 1+ param (
2+ [string ]$Version = " 0.0.1"
3+ )
4+ $base_dir = split-path - parent $MyInvocation.MyCommand.Definition
5+ $output_dir = Join-Path $base_dir ..\output
6+ $src_dir = Join-Path $base_dir ..\RCONServerLib
7+ $nuspec = Get-ChildItem $src_dir \* .nuspec - Recurse
8+
9+ Write-Host " Nuspec: $nuspec "
10+ Remove-Item - force - Recurse $output_dir - ErrorAction SilentlyContinue > $null
11+ New-Item - ItemType directory - Path $output_dir > $null
12+ nuget pack $nuspec.FullName - Properties " Version=$Version " - OutputDirectory $output_dir
Original file line number Diff line number Diff line change 2828platform : Any CPU
2929configuration :
3030 - Release
31- - Debug
31+ # - Debug
3232
3333build :
3434 parallel : true
@@ -38,21 +38,24 @@ before_build:
3838build_script :
3939 - msbuild /verbosity:quiet "RCON.sln"
4040test_script :
41- - .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"RCONServerLib.Tests\bin\Debug \RCONServerLib.Tests.dll -noshadow" -output:"coverage.xml" -filter:"+RCONServerLib* -RCONServerLib.Tests*"
41+ - .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"RCONServerLib.Tests\bin\Release \RCONServerLib.Tests.dll -noshadow" -output:"coverage.xml" -filter:"+RCONServerLib* -RCONServerLib.Tests*"
4242after_test :
4343 - ps : |
4444 $env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
4545 Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
4646 bash codecov.sh -f "coverage.xml"
47+ - ps : .\scripts\AfterTest.ps1 -Version $env:APPVEYOR_BUILD_VERSION
4748
4849artifacts :
4950 - path : RCONServerLib\bin\Release\RCONServerLib.dll
5051 name : rconserverlib
51- - path : ' RCONServerLib\*.nupkg'
52+ - path : ' RCONServerLib\**\*.nupkg'
53+ name : Nuget
5254
5355deploy :
5456 - provider : NuGet
57+ on :
58+ branch : release
5559 api_key :
5660 secure : A+/eZB/j74UGv72c1pFKGxcjtu8KT6/rqbwwx+ZRifwDDK8lRUVo4FKubGPUgWAh
57- skip_symbols : false
58- artifact : /RCONServerLib*\.nupkg/
61+ artifact : Nuget
You can’t perform that action at this time.
0 commit comments