forked from dotliquid/dotliquid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
54 lines (43 loc) · 1.54 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
# Build script for dotliquid, see https://www.appveyor.com/docs/appveyor-yml for reference
version: 2.2.{build}
image: Visual Studio 2017
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
configuration:
- Release
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}-$(APPVEYOR_REPO_COMMIT)"
install:
- cmd: choco install opencover.portable -y
- cmd: choco install codecov -y
- cmd: dotnet restore src/DotLiquid.sln
build:
verbosity: minimal # quiet|minimal|normal|detailed
project: src/DotLiquid.sln
publish_nuget: true
publish_nuget_symbols: true
after_build:
- cmd: md build\pkg
- cmd: nuget pack src/DotLiquid/DotLiquid.nuspec -Symbols -SymbolPackageFormat snupkg -Version "%APPVEYOR_BUILD_VERSION%" -OutputDirectory build\pkg
test_script:
- opencover.console -target:"C:\Tools\NUnit3\nunit3-console.exe" -targetargs:"src\DotLiquid.Tests\bin\Release\net461\DotLiquid.Tests.dll --where=cat!=windows --result=TestsResults.xml;format=AppVeyor" -output:TestsCoverage.xml -filter:"+[DotLiquid]*" -register:Path64 -returntargetcode
- codecov -f TestsCoverage.xml
artifacts:
- path: build\pkg\*.*nupkg
name: Nuget Package
- path: TestsCoverage.xml
nuget:
project_feed: true
deploy:
- provider: NuGet
api_key:
secure: F1oYgIvItci8pFuKud2m1cikA6Sslw1J20AoH+21jnEmu/AEELhef4aYLIMSRQxb
skip_symbols: false
artifact: /build/.*\.s?nupkg/
on:
branch: master