-
Notifications
You must be signed in to change notification settings - Fork 26
/
appveyor.yml
45 lines (36 loc) · 1.84 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
version: 1.1.{build}
image: Visual Studio 2019
skip_commits:
files:
- '**/*.md'
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
build:
project: .\BatMap.sln
verbosity: minimal
before_build:
- dotnet restore
after_build:
- dotnet pack BatMap\BatMap.csproj -c Release /p:Version=%appveyor_build_version%
- appveyor PushArtifact BatMap\bin\Release\BatMap.%appveyor_build_version%.nupkg
test_script:
- dotnet test -c %CONFIGURATION% BatMap.Tests\BatMap.Tests.csproj
- nuget install OpenCover -Version 4.6.519 -OutputDirectory tools
- .\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"c:\Program Files\dotnet\dotnet.exe" -targetargs:"test -f netcoreapp1.1 -c %CONFIGURATION% BatMap.Tests/BatMap.Tests.csproj" -filter:"+[BatMap*]* -[BatMap.*Tests*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -output:opencoverCoverage.xml -oldStyle -register:user
- nuget install coveralls.net -Version 0.7.0 -OutputDirectory tools
# - .\tools\coveralls.net.0.7.0\tools\csmacnz.Coveralls.exe --opencover -i opencoverCoverage.xml --repoToken "%COVERALLS_REPO_TOKEN%" --useRelativePaths --commitId "%APPVEYOR_REPO_COMMIT%" --commitBranch "%APPVEYOR_REPO_BRANCH%" --commitAuthor "%APPVEYOR_REPO_COMMIT_AUTHOR%" --commitEmail "%APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL%" --commitMessage "%APPVEYOR_REPO_COMMIT_MESSAGE%" --jobId "%APPVEYOR_BUILD_NUMBER%" --serviceName appveyor
- dotnet BatMap.Benchmark\bin\%CONFIGURATION%\netcoreapp1.1\BatMap.Benchmark.dll
- BatMap.Benchmark\bin\%CONFIGURATION%\net46\BatMap.Benchmark.exe
deploy:
provider: NuGet
api_key:
secure: hQY0HMU8ADJvqFfivG/Z0+h2Nz8xFCFd64ERHhaTFc3SzRy3Kz8C3FE8tiJMqMjz
skip_symbols: false
artifact: /.BatMap*\.nupkg/
on:
appveyor_repo_tag: true