You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metron.apache.org by ni...@apache.org on 2019/06/25 22:41:37 UTC

[metron] branch master updated: METRON-2155 Cache Maven in Travis CI Builds (nickwallen) closes apache/metron#1445

This is an automated email from the ASF dual-hosted git repository.

nickallen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/metron.git


The following commit(s) were added to refs/heads/master by this push:
     new f2f3bb4  METRON-2155 Cache Maven in Travis CI Builds (nickwallen) closes apache/metron#1445
f2f3bb4 is described below

commit f2f3bb4877b02ce40e9712a9bd0c91f6e4d40d75
Author: nickwallen <ni...@nickallen.org>
AuthorDate: Tue Jun 25 18:41:18 2019 -0400

    METRON-2155 Cache Maven in Travis CI Builds (nickwallen) closes apache/metron#1445
---
 .travis.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 0cb408f..13ecf46 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,10 +31,10 @@ language: java
 jdk:
   - oraclejdk8
 before_install:
-  - curl --retry 10 -O https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
-  - unzip -qq apache-maven-3.3.9-bin.zip
   - export M2_HOME=$PWD/apache-maven-3.3.9
   - export PATH=$M2_HOME/bin:$PATH
+  - '[[ -d $M2_HOME ]] || curl --retry 10 -O https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip'
+  - '[[ -d $M2_HOME ]] || unzip -qq apache-maven-3.3.9-bin.zip'
   - npm config set cache $HOME/.npm-cache --global
   - npm config set prefix $HOME/.npm-prefix --global
 
@@ -58,3 +58,4 @@ cache:
   - metron-interface/metron-config/node_modules
   - $HOME/.m2
   - $HOME/.npm
+  - $M2_HOME