Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Cache ansible galaxy roles in Travis CI
Browse files Browse the repository at this point in the history
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:
travis-ci/travis-ci#9814 (comment)
  • Loading branch information
sauloperez committed Nov 13, 2019
1 parent 8e2ac6d commit 6601aa5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -3,6 +3,10 @@ dist: bionic
language: python
python: 3.7.4

cache:
directories:
- vendor

jobs:
include:
- stage: lint
Expand Down

0 comments on commit 6601aa5

Please sign in to comment.