From 9ec0d7acd56288b678da4e3943034dd03016f3ac Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Wed, 3 Dec 2014 22:53:04 +0100 Subject: [PATCH] .travis.yml config to cache Gradle/Maven repos (~/.m2 & .gradle) This will lead to faster PR builds, and more importantly more reliable ones, as we should have less bad PRs due to spurious build failures due to unreachable http://repository.pentaho.org. With Doc + cache APT too (just as an example for later NPM builds) --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index fc99e9fcc..bb94c86ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ +# This (sudo: false) is needed to "run on container-based infrastructure" on which cache: is available +# http://docs.travis-ci.com/user/workers/container-based-infrastructure/ +sudo: false language: java jdk: - openjdk7 @@ -9,3 +12,9 @@ notifications: # @see http://gradle.1045684.n5.nabble.com/Plain-console-output-td5710237.html env: - TERM=dumb +# http://docs.travis-ci.com/user/caching/#Arbitrary-directories +cache: + apt: true + directories: + - $HOME/.gradle + - $HOME/.m2