You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by ke...@apache.org on 2016/08/25 18:55:27 UTC
[13/50] incubator-beam git commit: Cache .m2 directory on Travis-CI
Cache .m2 directory on Travis-CI
Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/630ae250
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/630ae250
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/630ae250
Branch: refs/heads/gearpump-runner
Commit: 630ae25017764a83cfd6dd6c1ac3d8eae2abfbb4
Parents: 5049011
Author: Kenneth Knowles <kl...@google.com>
Authored: Thu Aug 4 15:12:03 2016 -0700
Committer: Kenneth Knowles <kl...@google.com>
Committed: Mon Aug 8 14:41:19 2016 -0700
----------------------------------------------------------------------
.travis.yml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/630ae250/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index bef61ff..43ae7de 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,6 +47,20 @@ before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; fi
- export BEAM_SUREFIRE_ARGLINE="-Xmx512m"
+install:
+ # Removing this here protects from inadvertent caching
+ - rm -rf "$HOME/.m2/repository/org/apache/beam"
+
script:
- travis_retry mvn --batch-mode --update-snapshots $MAVEN_OVERRIDE verify
- travis_retry testing/travis/test_wordcount.sh
+
+cache:
+ directories:
+ - $HOME/.m2/repository
+
+before_cache:
+ # Removing here increases cache hits (makes the above
+ # rm in `install` redundant unless our config has a bug,
+ # but it will be idempotent)
+ - rm -rf "$HOME/.m2/repository/org/apache/beam"