Skip to content

Commit

Permalink
Fix appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco committed Feb 15, 2019
1 parent 418cc28 commit 83aa561
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,9 @@ build:
verbosity: normal
build_script:
- dotnet tool install --global dotnet-sonarscanner
# Begin 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" }'
-ps: 'if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { & dotnet
sonarscanner end /d:sonar.login="$env:SONAR_TOKEN" }'
- 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 83aa561

Please sign in to comment.