-
Notifications
You must be signed in to change notification settings - Fork 12
/
appveyor.yml
38 lines (29 loc) · 1015 Bytes
/
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
os: Visual Studio 2017
clone_depth: 1
deploy: off
branches:
only:
- master
assembly_info:
assembly_informational_version: "{version} - CI (AppVeyor, branch: {branch})"
configuration:
- Release
init:
- cmd: git config --global core.autocrlf true
before_build:
- dotnet restore
- nuget install OpenCover -Version 4.6.519 -OutputDirectory packages
- nuget install Codecov -Version 1.0.3 -OutputDirectory packages
build_script:
- cmd: dotnet build -c %CONFIGURATION% -f net45 "src\StringDB\StringDB.csproj"
- cmd: dotnet build -c %CONFIGURATION% -f netstandard2.0 "src\StringDB\StringDB.csproj"
test_script:
- ps: |
if ($env:CONFIGURATION -eq 'Release')
{
dotnet test tests\StringDB.Tests\ /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
packages\Codecov.1.0.3\tools\codecov.exe -f "tests\StringDB.Tests\coverage.opencover.xml"
}
artifacts:
- path: 'src\StringDB\bin\%CONFIGURATION%\*.nupkg'
name: StringDB.zip