Skip to content

Commit

Permalink
Try to cache Gradle downloads and Go cache
Browse files Browse the repository at this point in the history
Signed-off-by: David Gageot <[email protected]>
  • Loading branch information
dgageot committed Dec 20, 2019
1 parent 0d52436 commit 4ec11c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ jobs:
- chmod +x ${HOME}/bin/kind
script:
- make -j integration-in-kind
cache:
directories:
- $HOME/.cache/go-build
- $HOME/.gradle
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4ec11c4

Please sign in to comment.