-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
42 lines (33 loc) · 1.72 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
only_commits:
files: src
version: 2.1.{build}
image: Visual Studio 2019
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
build:
project: .\Linquest.AspNetCore.sln
verbosity: minimal
before_build:
- dotnet restore
after_build:
- dotnet pack src\Linquest.AspNetCore\Linquest.AspNetCore.csproj -c Release /p:Version=%appveyor_build_version%
- appveyor PushArtifact src\Linquest.AspNetCore\bin\Release\Linquest.AspNetCore.%appveyor_build_version%.nupkg
test_script:
- dotnet test -c %CONFIGURATION% test\Linquest.AspNetCore.Tests\Linquest.AspNetCore.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 -c %CONFIGURATION% test/Linquest.AspNetCore.Tests/Linquest.AspNetCore.Tests.csproj" -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
deploy:
provider: NuGet
api_key:
secure: hQY0HMU8ADJvqFfivG/Z0+h2Nz8xFCFd64ERHhaTFc3SzRy3Kz8C3FE8tiJMqMjz
skip_symbols: false
artifact: /.Linquest.AspNetCore*\.nupkg/
on:
appveyor_repo_tag: true