This repository has been archived by the owner on Dec 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathappveyor.yml
63 lines (54 loc) · 1.69 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
# version format
version: 1.1.{build}
branches:
only:
- master
- release
cache:
- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
- '%LocalAppData%\NuGet\Cache' # NuGet < v3
- '%LocalAppData%\NuGet\v3-cache' # NuGet v3
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "1.1.{build}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true # disable publishing of .nupkg artifacts to
platform: Any CPU
configuration:
- Release
#- Debug
build:
parallel: true
before_build:
- nuget restore
build_script:
- msbuild /verbosity:quiet "RCON.sln"
test_script:
- .\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:"+[*]* -[*.tests]* -[*.Tests]*"
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "coverage.xml"
- ps: .\AfterTest.ps1 -Version $env:APPVEYOR_BUILD_VERSION
artifacts:
- path: RCONServerLib\bin\Release\RCONServerLib.dll
name: rconserverlib
- path: 'output\**\*.nupkg'
name: Nuget
deploy:
# - provider: Environment
# name: GithubRcon
# on:
# branch: release
# - provider: NuGet
# on:
# branch: release
# api_key:
# secure: A+/eZB/j74UGv72c1pFKGxcjtu8KT6/rqbwwx+ZRifwDDK8lRUVo4FKubGPUgWAh
# artifact: Nuget