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:
James Truher [MSFT]
2017-05-17 11:08:38 -07:00
committed by Travis Plunk
parent 30b97a5d7c
commit 599eae9b1b
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -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
+6
View File
@@ -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) {