From 4ec11c42688b1f819c9c908160025ac60c7456a6 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Fri, 20 Dec 2019 18:33:10 +0100 Subject: [PATCH] Try to cache Gradle downloads and Go cache Signed-off-by: David Gageot --- .travis.yml | 4 ++++ Makefile | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index d4e7fd9f883..1702bafb573 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,3 +58,7 @@ jobs: - chmod +x ${HOME}/bin/kind script: - make -j integration-in-kind + cache: + directories: + - $HOME/.cache/go-build + - $HOME/.gradle diff --git a/Makefile b/Makefile index a399fef4754..e9ad4e8752c 100644 --- a/Makefile +++ b/Makefile @@ -173,6 +173,8 @@ integration-in-kind: kind-cluster skaffold-builder echo '{}' > /tmp/docker-config time docker run --rm \ -v /var/run/docker.sock:/var/run/docker.sock \ + -v $(HOME)/.gradle:/root/.gradle \ + -v $(HOME)/.cache:/root/.cache \ -v /tmp/kind-config:/kind-config \ -v /tmp/docker-config:/root/.docker/config.json \ -e KUBECONFIG=/kind-config \