forked from discord-bot-dev/Community-Discord-BOT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
27 lines (20 loc) · 1.08 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
version: 1.0.{build}
image: Visual Studio 2017
skip_tags: true
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
build_script:
- dotnet build -c Release
test_script:
- ps: >-
dotnet test
&('dotnet') ('test', 'CommunityBot.NUnit.Tests', '/p:CollectCoverage=true', '/p:"Include=[CommunityBot]*"', '/p:"Exclude=[NUnit3.TestAdapter]*"', '/p:CoverletOutputFormat=opencover')
nuget install OpenCover -OutputDirectory packages -Version 4.6.519
dotnet tool install coveralls.net --version 1.0.0 --tool-path tools
$coveralls = ".\tools\csmacnz.coveralls.exe"
if (Get-Variable 'COVERALLS_REPO_TOKEN' -Scope Global -ErrorAction 'Ignore') {
& $coveralls --opencover -i opencoverCoverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_JOB_ID
}