Skip to content

Commit

Permalink
Merge pull request #6 from guibranco/develop
Browse files Browse the repository at this point in the history
Codedov
  • Loading branch information
guibranco committed Feb 15, 2019
2 parents 95b6864 + 0f3c942 commit eebc61f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ The [ViaCEP](https://viacep.com.br) web service client for .NET projects
[![LatLongNet NuGet Version](https://img.shields.io/nuget/v/ViaCEP.svg?style=flat)](https://www.nuget.org/packages/ViaCEP/)
[![LatLongNet NuGet Downloads](https://img.shields.io/nuget/dt/ViaCEP.svg?style=flat)](https://www.nuget.org/packages/ViaCEP/)
[![Github All Releases](https://img.shields.io/github/downloads/guibranco/ViaCEP/total.svg?style=flat)](https://github.com/guibranco/ViaCEP)

![Last release](https://img.shields.io/github/release-date/guibranco/viacep.svg?style=flat)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CEPAberto&metric=alert_status)](https://sonarcloud.io/dashboard?id=guibranco_CEPAberto)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CEPAberto&metric=ncloc)](https://sonarcloud.io/dashboard?id=guibranco_CEPAberto)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CEPAberto&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=guibranco_CEPAberto)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=guibranco_CEPAberto&metric=security_rating)](https://sonarcloud.io/dashboard?id=guibranco_CEPAberto)

<img src="https://raw.githubusercontent.com/guibranco/ViaCEP/master/logo.png" alt="ViaCEP" width="287" height="72">


Expand Down
4 changes: 4 additions & 0 deletions ViaCEP.Tests/ViaCEP.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="2.5.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
Expand Down
4 changes: 3 additions & 1 deletion ViaCEP/ViaCEP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
<Authors>Guilherme Branco Stracini</Authors>
<Description>The ViaCEP WebService client for .NET projects</Description>
<Copyright>© 2019 Guilherme Branco Stracini. All rights reserved.</Copyright>
<PackageLicenseUrl>https://github.com/guibranco/ViaCEP/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicense>https://github.com/guibranco/ViaCEP/blob/master/LICENSE</PackageLicense>
<PackageProjectUrl>https://github.com/guibranco/ViaCEP/</PackageProjectUrl>
<RepositoryUrl>https://github.com/guibranco/ViaCEP</RepositoryUrl>
<RepositoryType>GIT</RepositoryType>
<PackageReleaseNotes>The first release</PackageReleaseNotes>
<PackageTags>cep zipcode postalcode postal zip address location api webservice brasil brazil correios ibge gia mf fazenda</PackageTags>
<PackageIconUrl>https://github.com/guibranco/ViaCEP/blob/master/logo.png</PackageIconUrl>
<Version>1.0.0</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 7 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ dotnet_csproj:
informational_version: '{version}'
before_build:
- cmd: nuget restore
- cmd: choco install opencover.portable
- cmd: choco install codecov
build:
publish_nuget: true
include_nuget_references: true
Expand All @@ -32,10 +34,13 @@ build_script:
/d:sonar.organization="guibranco-github"
/d:sonar.host.url="https://sonarcloud.io"
/d:sonar.login="$env:SONAR_TOKEN" /v:"$env:APPVEYOR_BUILD_NUMBER"
/d:sonar.cs.opencover.reportsPaths="$env:CD\coverage.xml" }'
/d:sonar.exclusions="**/bin/**/*,**/obj/**/*"
/d:sonar.coverage.exclusions="ViaCEP.Tests/**,**/*Tests.cs"
/d:sonar.cs.opencover.reportsPaths="$env:CD\lcov.opencover.xml" }'
- dotnet build
- ps: dotnet test .\ViaCEP.Tests\ViaCEP.Tests.csproj
- ps: dotnet test .\ViaCEP.Tests\ViaCEP.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat="opencover"
- ps: 'if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { & dotnet sonarscanner end /d:sonar.login="$env:SONAR_TOKEN" }'
- codecov -f "ViaCEP.Tests\coverage.opencover.xml"
after_build:
- xcopy C:\projects\viacep\ViaCEP\bin\Release\netstandard2.0\*.* C:\projects\viacep\src\
- rd /s /q C:\projects\viacep\ViaCEP\bin\Release\
Expand Down

0 comments on commit eebc61f

Please sign in to comment.