Skip to content
This repository was archived by the owner on Dec 23, 2022. It is now read-only.

Commit dcf8956

Browse files
committed
Fixing Appveyor
1 parent 7f4355c commit dcf8956

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

AfterTest1.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

appveyor.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ nuget:
2828
platform: Any CPU
2929
configuration:
3030
- Release
31-
- Debug
31+
#- Debug
3232

3333
build:
3434
parallel: true
@@ -38,21 +38,24 @@ before_build:
3838
build_script:
3939
- msbuild /verbosity:quiet "RCON.sln"
4040
test_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*"
4242
after_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

4849
artifacts:
4950
- path: RCONServerLib\bin\Release\RCONServerLib.dll
5051
name: rconserverlib
51-
- path: 'RCONServerLib\*.nupkg'
52+
- path: 'RCONServerLib\**\*.nupkg'
53+
name: Nuget
5254

5355
deploy:
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

0 commit comments

Comments
 (0)