From 6601aa5d55786794f15e0293ba20b526cd430e8b Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Wed, 13 Nov 2019 10:09:19 +0100 Subject: [PATCH] Cache ansible galaxy roles in Travis CI This should considerably speed up CI builds and we rarely touch add or remove vendor roles. If that was the case, Travis will store any modifications in the cache. I guessed that from docs and a PR: > Only modifications made to the cached directories from normal pushes are stored. source: https://docs.travis-ci.com/user/caching > If nothing in the dist directory changed during the build, nothing new will be uploaded. source: https://github.com/travis-ci/travis-ci/issues/9814#issuecomment-433669814 --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 656d99c..f725bb6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,10 @@ dist: bionic language: python python: 3.7.4 +cache: + directories: + - vendor + jobs: include: - stage: lint