Skip to content

Commit

Permalink
Add AppVeyor Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Feb 1, 2021
1 parent aa91d66 commit c898e6b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ init:
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
}
environment:
CODECOV_TOKEN: 89a901eb-b4fe-4e3d-af45-e3bbfb108776
CODECOV_TOKEN:
secure: EZNjEryLzLbW2DVaHYAe7hn5ze75CctdkAzGJY9LsTMmIq9aUVTo7K4wGwveKgGU
before_build:
- ps: |-
dotnet --version
dotnet restore ./Source/Reloaded.Memory.sln
dotnet restore ./Source/Reloaded.Memory.Buffers.sln
after_build:
- ps: |-
if ($env:APPVEYOR_REPO_TAG -eq "true")
Expand All @@ -24,27 +25,30 @@ after_build:
& npm install -g auto-changelog
& auto-changelog --sort-commits date --hide-credit --template keepachangelog --commit-limit false --starting-version "$env:APPVEYOR_REPO_TAG_NAME" -o $env:CHANGELOG_PATH
$env:CHANGELOG_TEXT = Get-Content -Path $env:CHANGELOG_PATH -Raw
$env:CHANGELOG_TEXT = $env:CHANGELOG_TEXT -replace "\n", "`\n"
echo $env:CHANGELOG_TEXT
}
build:
project: ./Source/Reloaded.Memory.sln
project: ./Source/Reloaded.Memory.Buffers.sln
verbosity: minimal
test_script:
- cmd: |-
choco install codecov
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.*]*\"
codecov -f "./Coverage/Reloaded.Memory.Tests.xml"
dotnet test ./Source/Reloaded.Memory.Buffers.sln /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=../../Coverage/Reloaded.Memory.Buffers.Tests.xml /p:Exclude=\"[Reloaded.Memory.Buffers.Shared]*,[xunit.*]*\"
codecov -f "./Coverage/Reloaded.Memory.Buffers.Tests.xml"
artifacts:
- path: Source\Reloaded.Memory\bin\Release
- path: Source\Reloaded.Memory.Buffers\bin\Release
name: Release Build
- path: Coverage
name: Coverage Statistics
- path: Source\Reloaded.Memory\bin\Release\*.nupkg
- path: Source\Reloaded.Memory.Buffers\bin\Release\*.nupkg
name: Nuget Release Package
- path: $(CHANGELOG_PATH)
name: Changelog
deploy:
- provider: GitHub
description: $(CHANGELOG_TEXT)
description: |
$(CHANGELOG_TEXT)
auth_token:
secure: 8Lqo9jP/L0PP7rNCr/FOdV8fc13U3U4kmDY5n9RMajb70SnIjujZz9J4tSGb9rAk
artifact: Release Build, Nuget Release Package
Expand Down

0 comments on commit c898e6b

Please sign in to comment.