forked from justaprogrammer/BuildCrossCheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
39 lines (39 loc) · 2.25 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
version: 1.0.{build}
image: Visual Studio 2017
environment:
MSBLOC_JWT:
secure: eWX23ydbzsvhziCB8woiK9EwwDv+ppl4E8j9ZuxwyrYOP6oQ9VFhBdsRvXiZo8AYsfNsYXMEPzndp5YhrbnNuE48FQ3QJQjmmISgpZN/V1INz5ukENLm3yeRYzg6YCDtRgv25+geZyrgG0oZ6rAR0GpTmBKG0SxFimkK6hA4GiB54+7BDiRQvIw776hyVUFW+sIjD8Za6xls3JDQmEEm/p4M5hPWOeLRJQqj8iTlVOLLRdk76FrawXdqIFK6dUtc/dcrx5ApAXm4bF5gPaBsbTfY5Q5IifGr6owrBW5z/vP9XsiN5wJz/HM7iCpwIW5w4Q9leruBMn7wdPZsFYf57j7z1INerDgqbptaSZWMD6Pm9D+ujrXNleuVEJN4+Gz8ZLSZfcY4hBI+t50Qp/YyEzqes/caJiD2qv01IymJe8P1DCoSoOgPzPykhJRfV8HVtnhMWJoh+HCmI+4MUNGHzUkCqvc8fXVxyl738OKE8SlZFb3XC6segwSo3zjHvPsLW5R2GJJX4cxVp3H78MJ9Nd4E+xejgms8tqLX4ELg1BBUf9dt/G+UIRstfsYz25ptVvLTvVpbkVLiwAbt99GYlTMixbS7HQyFrtqvgk0wAzGNBEHYyw6J2N+y53REZk+zyEdEmgIBWCY0xjYU8o5EZDjt47TiT4zYuveQlAqa3r2sHw+zXpTZTbz5DJLTYvsM
before_build:
- ps: |
nuget restore MSBuildLogOctokitChecker.sln -Verbosity Quiet
cd ./MSBLOC.web
npm install
cd ..
build_script:
- ps: >-
msbuild MSBuildLogOctokitChecker.sln --% /p:Configuration=Release /bl:output.binlog /verbosity:minimal
after_build:
- cmd: dotnet publish MSBLOC.Web --configuration Release --output %appveyor_build_folder%\dist
after_test:
- ps: |
dotnet tool install --global coverlet.console
coverlet .\MSBLOC.Core.Tests\bin\Release\netcoreapp2.1\MSBLOC.Core.Tests.dll --target "dotnet" --targetargs "test -c Release .\MSBLOC.Core.Tests\MSBLOC.Core.Tests.csproj --no-build" --format opencover --output ".\MSBLOC.Core.Tests.coverage.xml"
coverlet .\MSBLOC.Web.Tests\bin\Release\netcoreapp2.1\MSBLOC.Web.Tests.dll --target "dotnet" --targetargs "test -c Release .\MSBLOC.Web.Tests\MSBLOC.Web.Tests.csproj --no-build" --format opencover --output ".\MSBLOC.Web.Tests.coverage.xml"
choco install --no-progress codecov
codecov -f ".\MSBLOC.Core.Tests.coverage.xml"
codecov -f ".\MSBLOC.Web.Tests.coverage.xml"
artifacts:
- path: MSBLOC.Core.Tests.coverage.xml
type: File
- path: MSBLOC.Web.Tests.coverage.xml
type: File
- path: dist
name: dist.web
type: WebDeployPackage
on_finish:
- ps: >-
if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER)
{
Import-Module .\MSBLOC.Posh\MSBuildLogOctokitChecker.psm1
Send-MsbuildLogAppveyor -Path output.binlog -Token $env:MSBLOC_JWT
}