forked from dotliquid/dotliquid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
52 lines (46 loc) · 1.62 KB
/
Copy pathappveyor.yml
File metadata and controls
52 lines (46 loc) · 1.62 KB
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
# Build script for dotliquid is presently stored securely on AppVeyor.
# Below is ignored and kept for informational purposes only
version: 2.2.{build}
image: Visual Studio 2022
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
choco install codecov -y
choco install dotnetcore-runtime.install --version=1.1.13 --allow-downgrade -y
choco install dotnetcore-runtime.install --version=2.1.30 -y
dotnet restore src/DotLiquid.sln
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
nuget:
project_feed: true
build:
project: src/DotLiquid.sln
verbosity: minimal
after_build:
- ps: >-
New-Item -Path build\pkg -ItemType Directory
nuget pack src/DotLiquid/DotLiquid.nuspec -Symbols -SymbolPackageFormat snupkg -Version "$($env:APPVEYOR_BUILD_VERSION)" -OutputDirectory build\pkg
test_script:
- cmd: >-
opencover.console -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test src\DotLiquid.Tests\DotLiquid.Tests.csproj /clp:ErrorsOnly" -output:TestsCoverage.xml -filter:"+[DotLiquid]*" -register:user -returntargetcode -oldstyle
codecov -f TestsCoverage.xml
artifacts:
- path: build\pkg\*.*nupkg
name: Nuget Package
- path: TestsCoverage.xml
deploy:
- provider: NuGet
api_key:
secure: ****************************************************************
skip_symbols: false
artifact: /build/.*\.s?nupkg/
on:
branch: master