Skip to content

Commit

Permalink
Merge pull request #2 from guibranco/feature/sonarloud
Browse files Browse the repository at this point in the history
Feature/sonarcloud
  • Loading branch information
guibranco committed Feb 15, 2019
2 parents 8a32416 + 83aa561 commit 694e50e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ image: Visual Studio 2017
configuration: Release
skip_commits:
message: /(Created|Update).*\.(png|jpg|jpeg|bmp|gif|md)/
environment:
SONAR_TOKEN:
secure: RInIGZ27l7L0VcHIfpvPklRbBrGvQeXc6ntT1u10T741dV0vRrAzxRKq5nIrarzj
dotnet_csproj:
patch: true
file: '**\*.csproj'
Expand All @@ -22,6 +25,11 @@ build:
include_nuget_references: true
parallel: true
verbosity: normal
build_script:
- dotnet tool install --global dotnet-sonarscanner
- ps: 'if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { & dotnet sonarscanner begin /k:"guibranco_CEPAberto" /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" }'
- dotnet build
- ps: 'if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { & dotnet sonarscanner end /d:sonar.login="$env:SONAR_TOKEN" }'
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 694e50e

Please sign in to comment.