-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
53 lines (48 loc) · 1.46 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
version: 2.1.0.{build}
image: Visual Studio 2019
configuration: Release
skip_commits:
files:
- Docs/*
- '**/*.md'
- 'mkdocs.yml'
- '.readthedocs.yml'
- '**/*.bat'
- '.gitignore'
install:
- ps: |
function install-devpack ($version, $location) {
Write-Host ".NET Framework $($version) Developer Pack..." -ForegroundColor Cyan
Write-Host "Downloading..."
$exePath = "$env:TEMP\$($version)-devpack.exe"
(New-Object Net.WebClient).DownloadFile($location, $exePath)
Write-Host "Installing..."
cmd /c start /wait "$exePath" /quiet /norestart
del $exePath
Write-Host "Installed" -ForegroundColor Green
}
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- nuget restore
- choco install opencover.portable
- choco install codecov
build:
project: TextSerializer.sln
publish_nuget: true
verbosity: minimal
test_script:
- OpenCover.Console.exe -register:user -target:"vstest.console.exe" -targetargs:"/logger:Appveyor .\Tests\bin\Release\net45\Tests.dll .\Tests\bin\Release\net46\Tests.dll .\Tests\bin\Release\net47\Tests.dll" -output:".\Tests_coverage.xml"
- codecov -f "Tests_coverage.xml"
deploy:
- provider: NuGet
api_key:
secure: 5Eq/DsLy51QHPQM1qoAFdA9BGDutYgHIa9NcAAk4E6hulRc/VKo9w2/E0mOuFnHD
on:
branch: master