diff --git a/.travis.yml b/.travis.yml index 1f8c14d26e2..f96b214ff6b 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