-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
44 lines (39 loc) · 1.14 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
version: '{build}'
os: Visual Studio 2017
configuration: Release
platform: Any CPU
skip_tags: true
before_build:
- ps: >-
git lfs pull
nuget restore
build:
project: Scallion.sln
verbosity: minimal
publish_nuget: true
test_script:
- ps: >-
$test_dll_dir = (Resolve-Path "*.Tests\bin\$env:CONFIGURATION").ToString()
$opencover = (Resolve-Path "packages\OpenCover.*\tools\OpenCover.Console.exe").ToString()
$targetargs = """$((Resolve-Path "$test_dll_dir\*.Tests.dll").ToString())"" /noshadow"
$filter = "+[*]Scallion.* -[*]Scallion.Tests.*"
& $opencover -register:user -target:nunit-console.exe "-targetargs:$targetargs" "-filter:$filter" -returntargetcode -hideskipped:All -output:coverage.xml
artifacts:
- path: Scallion\bin\$(configuration)
name: Scallion
deploy:
- provider: NuGet
api_key:
secure: J0dY82noX2HQLnTB/BYBertJ4rKlsVTyayl2QM+nwpTvB170mk2Vjqhw7YSSQ6j2
on:
branch: master
- provider: GitHub
release: Scallion
auth_token:
secure: KkbkUfg5iFaqdqxRAHRvPZv5+nfF99DyufxN6IijxL2TWoV3QTdkAkrnyNvIPt9+
artifact: Scallion
draft: true
on:
branch: master
cache:
- packages -> **\packages.config