Родитель
2331904ba3
Коммит
b40f4a0505
|
@ -8,8 +8,8 @@
|
|||
|
||||
|Build/Package|Status|
|
||||
|------|-------------|
|
||||
|master|[![Build status](https://ci.appveyor.com/api/projects/status/anpaipqto58ka5lk/branch/master?svg=true)](https://ci.appveyor.com/project/jtaubensee/azure-service-bus-dotnet/branch/master) [![codecov](https://codecov.io/gh/Azure/azure-service-bus-dotnet/branch/master/graph/badge.svg)](https://codecov.io/gh/Azure/azure-service-bus-dotnet)|
|
||||
|dev|[![Build status](https://ci.appveyor.com/api/projects/status/anpaipqto58ka5lk/branch/master?svg=true)](https://ci.appveyor.com/project/jtaubensee/azure-service-bus-dotnet/branch/dev) [![codecov](https://codecov.io/gh/Azure/azure-service-bus-dotnet/branch/dev/graph/badge.svg)](https://codecov.io/gh/Azure/azure-service-bus-dotnet)|
|
||||
|master|[![Build status](https://ci.appveyor.com/api/projects/status/anpaipqto58ka5lk/branch/master?svg=true)](https://ci.appveyor.com/project/jtaubensee/azure-service-bus-dotnet/branch/master)|
|
||||
|dev|[![Build status](https://ci.appveyor.com/api/projects/status/anpaipqto58ka5lk/branch/master?svg=true)](https://ci.appveyor.com/project/jtaubensee/azure-service-bus-dotnet/branch/dev)|
|
||||
|Microsoft.Azure.ServiceBus|[![NuGet Version and Downloads count](https://buildstats.info/nuget/Microsoft.Azure.ServiceBus?includePreReleases=true)](https://www.nuget.org/packages/Microsoft.Azure.ServiceBus/)|
|
||||
|
||||
This is the next generation Service Bus .NET client library that focuses on queues & topics. If you are looking for Event Hubs and Relay clients, follow the below links:
|
||||
|
|
|
@ -10,8 +10,6 @@ environment:
|
|||
secure: xohonz/X8PPLOVIdT3ch2C5XeSa30RwR6NuXFh4e85svXT1mJNGGO1HQEGxCk3wp
|
||||
AppId:
|
||||
secure: c+H140oRJfHtmFHZxSRLWocv5AU0q33X7kgMcTcXxhJvtVhk2WAk1dRQkSN+SyoA
|
||||
CodeCov:
|
||||
secure: 4/S+CQQJP+gBYrAOj6c1zg3GBMbhKofjIbqq7z6GeVUIWDJCd3ATGsDRT4++bruM
|
||||
before_build:
|
||||
- ps: >-
|
||||
. .\build\AppveyorBuildFunctions.ps1
|
||||
|
|
|
@ -93,30 +93,12 @@ function Run-UnitTests
|
|||
{
|
||||
Write-Host "Running unit tests."
|
||||
|
||||
Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile nuget.exe
|
||||
$openCoverVersion = '4.6.684'
|
||||
# Using a temporary version of OpenCover until a NuGet is published. https://github.com/OpenCover/opencover/issues/669
|
||||
Invoke-WebRequest -Uri "https://ci.appveyor.com/api/buildjobs/v896p89ur5qpd4he/artifacts/main%2Fbin%2Fpackages%2Fnuget%2Fopencover%2FOpenCover.4.6.684.nupkg" -OutFile "OpenCover.4.6.684.nupkg"
|
||||
& .\nuget.exe install opencover -version $openCoverVersion -source $ENV:APPVEYOR_BUILD_FOLDER\
|
||||
$openCoverConsole = $ENV:APPVEYOR_BUILD_FOLDER + '\OpenCover.' + $openCoverVersion + '\tools\OpenCover.Console.exe'
|
||||
$coverageFile = $ENV:APPVEYOR_BUILD_FOLDER + '\coverage.xml'
|
||||
$target = '-target:C:\Program Files\dotnet\dotnet.exe'
|
||||
$testProject = $ENV:APPVEYOR_BUILD_FOLDER + '\test\Microsoft.Azure.ServiceBus.UnitTests\Microsoft.Azure.ServiceBus.UnitTests.csproj'
|
||||
$targetArgs = '-targetargs: test ' + $testProject + ' -f netcoreapp1.0'
|
||||
$filter = '-filter:+[Microsoft.Azure.ServiceBus*]* -[Microsoft.Azure.ServiceBus.UnitTests]*'
|
||||
$output = '-output:' + $coverageFile
|
||||
|
||||
& $openCoverConsole $target $targetArgs $filter $output '-register:user' '-oldStyle'
|
||||
dotnet test test/Microsoft.Azure.ServiceBus.UnitTests/Microsoft.Azure.ServiceBus.UnitTests.csproj
|
||||
|
||||
if (-not $?)
|
||||
{
|
||||
throw "Unit tests failed."
|
||||
}
|
||||
|
||||
$ENV:PATH = 'C:\\Python34;C:\\Python34\\Scripts;' + $ENV:PATH
|
||||
python -m pip install --upgrade pip
|
||||
pip install git+git://github.com/codecov/codecov-python.git
|
||||
codecov -f $coverageFile -t $ENV:CodeCov -X gcov
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -145,4 +127,4 @@ function Delete-AzureResources
|
|||
{
|
||||
Write-Host "No environment variables present. Skipping Azure resource deletion"
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче