From 488e395f347ea104a7d920b1b43876d3af3796df Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 24 Jan 2018 13:56:42 -0800 Subject: [PATCH] Start using Travis-CI cache (#6003) --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1f8c14d26e..f96b214ff6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,3 +53,15 @@ after_failure: after_success: - pwsh -File tools/travis.ps1 -Stage Success + +# travis-ci will quit using the cache if an enviroment variable changes +env: + - CACHE_VERSION=netcoreapp.2.0.5 + +# timeout uploading cache after 6 minutes (360 seconds) +cache: + timeout: 360 + directories: + - $HOME/.nuget + - $HOME/.dotnet + - $HOME/Library/Caches/Homebrew