From 6ea1389571d227a148e0dcc57d7843f7179bd20a Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Tue, 5 Jun 2018 15:51:13 -0700 Subject: [PATCH] Skip dotnet-cli initialization and stop caching the 'dotnet' folder for Travis CI (#7007) --- .travis.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index b8b43593e5..e8dc9d4c23 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,19 +57,17 @@ after_success: # travis-ci will quit using the cache if an enviroment variable changes. # CACHE_VERSION is not used for anything other than invalidating the cache. +# DOTNET_SKIP_FIRST_TIME_EXPERIENCE is to skip the dotnet-cli initialization, +# which is expensive and unneeded for build agents. env: global: - CACHE_VERSION=netcoreapp.2.1-sdk.2.1.300 - POWERSHELL_TELEMETRY_OPTOUT=1 + - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 # timeout uploading cache after 6 minutes (360 seconds) cache: timeout: 360 directories: - $HOME/.nuget - - $HOME/.dotnet - $HOME/Library/Caches/Homebrew -# cleanup data that should not be cache, before caching -before_cache: - - rm -r -f $HOME/.dotnet/optimizationdata - - rm -r -f $HOME/.dotnet/pids