mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Do not send telemetry in CI (#3785)
This removes the telemetry semaphore file in CI for both Travis-CI and AppVeyor
This commit is contained in:
committed by
Travis Plunk
parent
30b97a5d7c
commit
599eae9b1b
@@ -311,6 +311,12 @@ function Invoke-AppVeyorTest
|
||||
Write-Host -Foreground Green 'Running all CoreCLR tests..'
|
||||
}
|
||||
|
||||
# Remove telemetry semaphore file in CI
|
||||
$telemetrySemaphoreFilepath = Join-Path $env:CoreOutput DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY
|
||||
if ( Test-Path "${telemetrySemaphoreFilepath}" ) {
|
||||
Remove-Item -Force ${telemetrySemaphoreFilepath}
|
||||
}
|
||||
|
||||
Start-PSPester -bindir $env:CoreOutput -outputFile $testResultsNonAdminFile -Unelevate -Tag @() -ExcludeTag ($ExcludeTag + @('RequireAdminOnWindows'))
|
||||
Write-Host -Foreground Green 'Upload CoreCLR Non-Admin test results'
|
||||
Update-AppVeyorTestResults -resultsFile $testResultsNonAdminFile
|
||||
|
||||
@@ -123,6 +123,12 @@ if ($isFullBuild) {
|
||||
$pesterParam['ThrowOnFailure'] = $true
|
||||
}
|
||||
|
||||
# Remove telemetry semaphore file in CI
|
||||
$telemetrySemaphoreFilepath = Join-Path $output DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY
|
||||
if ( Test-Path "${telemetrySemaphoreFilepath}" ) {
|
||||
Remove-Item -force ${telemetrySemaphoreFilepath}
|
||||
}
|
||||
|
||||
Start-PSPester @pesterParam
|
||||
|
||||
if (-not $isPr) {
|
||||
|
||||
Reference in New Issue
Block a user