Skip to content

Commit 80ef3b5

Browse files
committed
Keep related code together
1 parent a343223 commit 80ef3b5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

build.ps1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,15 @@ if ($SigningCertThumbprint) {
5959
}
6060

6161
# Test
62-
if ($env:CODECOV_TOKEN) {
63-
dotnet tool install Codecov.Tool --tool-path tools
64-
$codecov = 'tools\codecov'
65-
}
66-
6762
Remove-Item -Recurse -Force $testResultsDir -ErrorAction Ignore
6863

6964
dotnet test --no-build --configuration $configuration --logger trx --results-directory $testResultsDir /p:AltCover=true /p:AltCoverXmlReport="$testResultsDir\coverage.xml" /p:AltCoverAssemblyExcludeFilter=AmbientTasks.Tests /p:AltCoverVerbosity=Warning /bl:"$logsDir\test.binlog"
7065
if ($LastExitCode) { $testsFailed = true }
7166

7267
if ($env:CODECOV_TOKEN) {
68+
dotnet tool install Codecov.Tool --tool-path tools
69+
$codecov = 'tools\codecov'
70+
7371
foreach ($coverageFile in Get-ChildItem "$testResultsDir\coverage.*.xml") {
7472
$tfm = $coverageFile.Name.Substring(
7573
'coverage.'.Length,

0 commit comments

Comments
 (0)