Skip to content

Commit 46f7ad0

Browse files
committed
Adjusts (try to) paths for appveyor
1 parent ca572e5 commit 46f7ad0

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

scripts/Build.ps1

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,6 @@ Catch
130130
else { echo "reportgenerator already installed" }
131131
}
132132

133-
$folder = Get-Location
134-
135-
Get-ChildItem -Path $folder
136-
137-
Get-ChildItem -Path "testresults" | -Resolve-Path -Relative
138-
139133
echo "Starting Sonar for Library"
140134

141135
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null)
@@ -149,9 +143,11 @@ else
149143

150144
exec { & dotnet build $libraryOnlySolutionPath -c Release }
151145

152-
dotnet test -c Release -s coverletArgs.runsettings -r ".\TestResults\"
146+
dotnet test -c Release -s ".\coverletArgs.runsettings" -r ".\TestResults\"
147+
148+
Get-ChildItem -Path "TestResults" | Resolve-Path -Relative
153149

154-
exec { & reportgenerator "-reports:TestResults\*\*.xml" "-targetdir:TestResults\" "-reporttypes:SonarQube" }
150+
exec { & reportgenerator "-reports:.\TestResults\*\*.xml" "-targetdir:TestResults\" "-reporttypes:SonarQube" }
155151

156152
exec { & dotnet sonarscanner end /d:sonar.login="$env:sonartoken" }
157153

0 commit comments

Comments
 (0)