From 7a4e0113aca2c9c755d1f73b2f14837356209578 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Mon, 7 Aug 2017 10:56:14 -0700 Subject: [PATCH 1/2] Start using Travis-CI cache --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1f8c14d26e2..7e48bfaf526 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,3 +53,13 @@ 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 + +cache: + directories: + - $HOME/.nuget + - $HOME/.dotnet + - $HOME/Library/Caches/Homebrew From e8f84210b3361ebf33503465a4cd3d4c216bb490 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 24 Jan 2018 09:21:43 -0800 Subject: [PATCH 2/2] increase cache timeout to 6 minutes --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7e48bfaf526..f96b214ff6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,7 +58,9 @@ after_success: env: - CACHE_VERSION=netcoreapp.2.0.5 +# timeout uploading cache after 6 minutes (360 seconds) cache: + timeout: 360 directories: - $HOME/.nuget - $HOME/.dotnet