Since a PR added support to opt out of telemetry via an environment variable, we can remove the, always intended to be a temporary, solution of deleting a file to opt out of telemetry since the environment variable can be defined at the system level and exist before even installing PowerShell Core. Because the variable is defined as opt out, a value of true, yes, or 1 means no telemetry is sent.
32 lines
626 B
YAML
32 lines
626 B
YAML
# version is set in tools\appveyor.psm1 - Invoke-AppVeyorInstall
|
|
|
|
image: Visual Studio 2017
|
|
|
|
# cache version - netcoreapp.2.0.6-sdk.2.1.4
|
|
cache:
|
|
- '%LocalAppData%\Microsoft\dotnet -> appveyor.yml'
|
|
- '%HOMEDRIVE%%HOMEPATH%\.nuget\packages -> appveyor.yml'
|
|
|
|
nuget:
|
|
project_feed: true
|
|
|
|
environment:
|
|
POWERSHELL_TELEMETRY_OPTOUT: 1
|
|
|
|
install:
|
|
- git submodule update --init
|
|
- ps: Import-Module .\tools\Appveyor.psm1
|
|
- ps: Invoke-AppveyorInstall
|
|
|
|
build_script:
|
|
- ps: Invoke-AppveyorBuild
|
|
|
|
test_script:
|
|
- ps: Invoke-AppveyorTest
|
|
|
|
after_test:
|
|
- ps: Invoke-AppVeyorAfterTest
|
|
|
|
on_finish:
|
|
- ps: Invoke-AppveyorFinish
|