-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
62 lines (56 loc) · 1.62 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
version: 1.0.{build}
image: Previous Visual Studio 2019
configuration:
- Release
- Debug
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
}
install-devpack -version "4.7" -location "https://download.microsoft.com/download/A/1/D/A1D07600-6915-4CB8-A931-9A980EF47BB7/NDP47-DevPack-KB3186612-ENU.exe"
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: Collections.sln
publish_nuget: true
verbosity: minimal
for:
-
matrix:
only:
- configuration: Debug
test_script:
- OpenCover.Console.exe -register:user -target:"vstest.console.exe" -targetargs:".\Tests\bin\Debug\net47\Tests.dll" -output:".\Tests_coverage.xml"
- codecov -f ".\Tests_coverage.xml"
#deploy:
#- provider: NuGet
# api_key:
# secure: FCTeK6seq0e90uq+7DLRVKbseyxT3/BDaTNCEWTQ2MRjvS3x533Blqs1dpvfRVt3
# on:
# branch: master