.travis.yml: Document how the build matrix use caches
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 3 Sep 2019 13:26:46 +0000 (15:26 +0200)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 10 Sep 2019 13:14:32 +0000 (14:14 +0100)
We will set the CACHE_NAME variable to improve the caching
of various jobs using the same characteristics. Document it
first.

See https://docs.travis-ci.com/user/caching/#caches-and-build-matrices

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
.travis.yml

index 3d1c7f0d7e05434a0bb423817228c7bfc3d09c85..51c7d19c0713ec453963e66ac4e04272729d6df7 100644 (file)
@@ -6,6 +6,12 @@ language: c
 compiler:
   - gcc
 cache:
+  # There is one cache per branch and compiler version.
+  # characteristics of each job are used to identify the cache:
+  # - OS name (currently, linux, osx, or windows)
+  # - OS distribution (for Linux, xenial, trusty, or precise)
+  # - macOS image name (e.g., xcode7.2)
+  # - Names and values of visible environment variables set in .travis.yml or Settings panel
   timeout: 1200
   ccache: true
   pip: true