-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
77 lines (55 loc) · 2.23 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
# Documentation/Reference: https://www.appveyor.com/docs/appveyor-yml/
# Semantic Versioning http://semver.org/
version: 0.0.{build}
image: Visual Studio 2022
# branches to build
branches:
# whitelist
only:
- master
init:
- git config --global core.autocrlf true
# environment:
# NUnitRunnerUri: https://github.com/nunit/nunit-console/releases/download/3.13/NUnit.Console-3.13.0.zip
install:
- choco install gitversion.portable -pre -y
# Install NUnit console runner
# - ps: Start-FileDownload $env:NUnitRunnerUri -FileName NUnitInstaller.zip
# - cmd: 7z x NUnitInstaller.zip -y
# clone directory
clone_folder: C:\Projects\MiKo.Analyzers
# fetch repository as zip archive (when next line is uncommented)
# shallow_clone: true
# skip specific commits (see https://www.appveyor.com/docs/how-to/filtering-commits/)
skip_commits:
files:
- /*.md
# environment variables
environment:
APP_VEYOR: true
before_build:
- nuget restore "C:\Projects\MiKo.Analyzers\MiKo.Analyzer.sln"
# enable patching of project file (.NET Core)
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
build:
parallel: true
project: MiKo.Analyzer.sln
verbosity: minimal
platform:
- Any CPU
configuration:
# - Debug
- Release
test_script:
- '%USERPROFILE%\.nuget\packages\OpenCover\4.7.1221\tools\OpenCover.Console.exe -register:user -target:"%PROGRAMFILES%\dotnet\dotnet.exe" -targetargs:"test C:\projects\MiKo.Analyzers\MiKo.Analyzer.Tests\MiKo.Analyzer.Tests.csproj --configuration Release --no-build --output C:\Projects\MiKo.Analyzers\MiKo.Analyzer.Tests\bin\net8.0 " -returntargetcode -filter:"+[MiKo*]* -[*Test*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -excludebyfile:*\*Designer.cs -hideskipped:All -output:"C:\Projects\MiKoAnalyzers_coverage.xml" '
# Codecov Flags (https://docs.codecov.io/v4.3.6/docs/flags)
- '%USERPROFILE%\.nuget\packages\Codecov\1.10.0\tools\codecov.exe -f "C:\Projects\MiKoAnalyzers_coverage.xml" -t 3599e0b3-8d22-44eb-a33d-58383db89b64 --flag api'
# Run SonarQube scanner
# cache: