-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathappveyor.yml
25 lines (25 loc) · 1.27 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
version: 1.0.4.{build}
image: Visual Studio 2017
configuration: Release
environment:
PROJECT_ROOT: C:\projects\sharppdb
install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
- ps: choco install opencover.portable --limitoutput --no-progress
- ps: choco install codecov --limitoutput --no-progress
before_build:
- ps: Vsix-TokenReplacement SharedAssemblyInfo.props '<AssemblyVersion>([0-9\\.]+)</AssemblyVersion>' '<AssemblyVersion>{version}</AssemblyVersion>'
- ps: Vsix-TokenReplacement SharedAssemblyInfo.props '<FileVersion>([0-9\\.]+)</FileVersion>' '<FileVersion>{version}</FileVersion>'
- ps: Vsix-TokenReplacement SharedAssemblyInfo.props '<VersionPrefix>([0-9\\.]+)</VersionPrefix>' '<VersionPrefix>{version}</VersionPrefix>'
- ps: pushd $env:PROJECT_ROOT\pdbs\
- ps: .\download.ps1
- ps: popd
build_script:
- cmd: dotnet build /p:UsingAppVeyor=True
- cmd: dotnet pack --no-build
test_script:
- cmd: OpenCover.Console.exe -register:user -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test --no-build" -output:".\coverage.xml" -oldstyle -filter:"+[SharpPdb*]* -[SharpPdb*.Tests*]*"
- cmd: codecov -f "coverage.xml"
artifacts:
- path: bin\**\*.nupkg
name: NuGets