File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ install:
1313
1414build_script :
1515 - ps : .\build.ps1
16- - ps : .\run-sonar.ps1
17-
16+
1817artifacts :
1918 - path : ' artifacts\*.nupkg'
2019
@@ -24,6 +23,7 @@ test_script:
2423 - OpenCover\tools\OpenCover.Console.exe -register:user -mergeoutput -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test -f netcoreapp2.0" -filter:"+[NLog.Extensions.Logging]* -[NLog.Extensions.Logging.Tests]*" -output:"coverage.xml" -oldstyle -targetdir:"test"
2524 - pip install codecov
2625 - codecov -f "coverage.xml"
26+ - ps : .\run-sonar.ps1
2727 - ps : .\run-tests.ps1
2828
2929deploy :
Original file line number Diff line number Diff line change @@ -38,16 +38,16 @@ if ($env:APPVEYOR_REPO_NAME -eq $github) {
3838 if ($prMode ) {
3939 $pr = $env: APPVEYOR_PULL_REQUEST_NUMBER
4040 Write-Output " Sonar: Running Sonar for PR $pr "
41- SonarScanner.MSBuild.exe begin / o:" $sonarOrg " / k:" $sonarQubeId " / d:" sonar.host.url=$sonarUrl " / d:" sonar.login=$sonarToken " / v:" $buildVersion " / d:" sonar.analysis.mode=preview" / d:" sonar.github.pullRequest=$pr " / d:" sonar.github.repository=$github " / d:" sonar.github.oauth=$env: github_auth_token "
41+ SonarScanner.MSBuild.exe begin / o:" $sonarOrg " / k:" $sonarQubeId " / d:" sonar.host.url=$sonarUrl " / d:" sonar.login=$sonarToken " / v:" $buildVersion " / d:" sonar.cs.opencover.reportsPaths=coverage.xml " / d: " sonar. analysis.mode=preview" / d:" sonar.github.pullRequest=$pr " / d:" sonar.github.repository=$github " / d:" sonar.github.oauth=$env: github_auth_token "
4242 }
4343 elseif ($branchMode ) {
4444 $branch = $env: APPVEYOR_REPO_BRANCH ;
4545 Write-Output " Sonar: Running Sonar in branch mode for branch $branch "
46- SonarScanner.MSBuild.exe begin / o:" $sonarOrg " / k:" $sonarQubeId " / d:" sonar.host.url=$sonarUrl " / d:" sonar.login=$sonarToken " / v:" $buildVersion " / d:" sonar.branch.name=$branch "
46+ SonarScanner.MSBuild.exe begin / o:" $sonarOrg " / k:" $sonarQubeId " / d:" sonar.host.url=$sonarUrl " / d:" sonar.login=$sonarToken " / v:" $buildVersion " / d:" sonar.cs.opencover.reportsPaths=coverage.xml " / d: " sonar. branch.name=$branch "
4747 }
4848 else {
4949 Write-Output " Sonar: Running Sonar in non-preview mode, on branch $env: APPVEYOR_REPO_BRANCH "
50- SonarScanner.MSBuild.exe begin / o:" $sonarOrg " / k:" $sonarQubeId " / d:" sonar.host.url=$sonarUrl " / d:" sonar.login=$sonarToken " / v:" $buildVersion "
50+ SonarScanner.MSBuild.exe begin / o:" $sonarOrg " / k:" $sonarQubeId " / d:" sonar.host.url=$sonarUrl " / d:" sonar.login=$sonarToken " / v:" $buildVersion " / d: " sonar.cs.opencover.reportsPaths=coverage.xml "
5151 }
5252
5353 msbuild / t:Rebuild $projectFile / p:targetFrameworks= $framework / verbosity:minimal
You can’t perform that action at this time.
0 commit comments