From b40f4a05056ca11b096cf3755dbd5f5eaededebc Mon Sep 17 00:00:00 2001 From: John Taubensee Date: Mon, 24 Apr 2017 13:28:53 -0700 Subject: [PATCH] Revert "Codecov (#115)" (#142) This reverts commit 2331904ba3d3fd0f41625b321a8e1ca720532727. --- README.md | 4 ++-- appveyor.yml | 2 -- build/AppveyorBuildFunctions.ps1 | 22 ++-------------------- 3 files changed, 4 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index ed1347a..bef93bb 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/appveyor.yml b/appveyor.yml index 5f7e0dd..a85538e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/build/AppveyorBuildFunctions.ps1 b/build/AppveyorBuildFunctions.ps1 index 11777fe..8088f94 100644 --- a/build/AppveyorBuildFunctions.ps1 +++ b/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" } -} +} \ No newline at end of file