Skip to content

Commit 1f5a623

Browse files
committed
Added: AppVeyor Configuration
1 parent 375b198 commit 1f5a623

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

appveyor.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
version: CI-{build}
2+
image: Visual Studio 2019
3+
configuration:
4+
- Release
5+
platform: Any CPU
6+
init:
7+
- ps: |-
8+
if ($env:APPVEYOR_REPO_TAG -eq "true")
9+
{
10+
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
11+
}
12+
environment:
13+
CODECOV_TOKEN: 89a901eb-b4fe-4e3d-af45-e3bbfb108776
14+
before_build:
15+
- ps: |-
16+
dotnet --version
17+
dotnet restore ./Source/Reloaded.Memory.sln
18+
after_build:
19+
- ps: |-
20+
if ($env:APPVEYOR_REPO_TAG -eq "true")
21+
{
22+
$env:CHANGELOG_PATH = "CHANGELOG.MD"
23+
& npm install -g auto-changelog
24+
& auto-changelog --sort-commits date --hide-credit --template keepachangelog --commit-limit false --starting-version "$env:APPVEYOR_REPO_TAG_NAME" -o $env:CHANGELOG_PATH
25+
$env:CHANGELOG_TEXT = Get-Content -Path $env:CHANGELOG_PATH -Raw
26+
}
27+
build:
28+
project: ./Source/Reloaded.Memory.sln
29+
verbosity: minimal
30+
test_script:
31+
- cmd: |-
32+
choco install codecov
33+
dotnet test ./Source/Reloaded.Memory.sln /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=../../Coverage/Reloaded.Memory.Tests.xml /p:Exclude=\"[Reloaded.Memory.Shared]*,[xunit.*]*\"
34+
codecov -f "./Coverage/Reloaded.Memory.Tests.xml"
35+
artifacts:
36+
- path: Source\Reloaded.Memory\bin\Release
37+
name: Release Build
38+
- path: Coverage
39+
name: Coverage Statistics
40+
- path: Source\Reloaded.Memory\bin\Release\*.nupkg
41+
name: Nuget Release Package
42+
deploy:
43+
- provider: GitHub
44+
description: $(CHANGELOG_TEXT)
45+
auth_token:
46+
secure: 8Lqo9jP/L0PP7rNCr/FOdV8fc13U3U4kmDY5n9RMajb70SnIjujZz9J4tSGb9rAk
47+
artifact: Release Build, Nuget Release Package
48+
on:
49+
APPVEYOR_REPO_TAG: true
50+
- provider: NuGet
51+
api_key:
52+
secure: /T4vdj8lFWKOcuR5WguX5THrC1DYP4ofjy8yCdm3pz9T/yBMqEZoQKXvVzEBu965
53+
artifact: Nuget Release Package
54+
on:
55+
APPVEYOR_REPO_TAG: true

0 commit comments

Comments
 (0)