flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ches...@apache.org
Subject [1/8] flink git commit: [FLINK-7141] [build] enable travis cache again
Date Tue, 25 Jul 2017 11:31:17 GMT
Repository: flink
Updated Branches:
  refs/heads/master 8215f2e18 -> b13914799


[FLINK-7141] [build] enable travis cache again

This adds some additional checks that should make sure the repository may not
get corrupted or if it was than at least it is cleaned up again.

This closes #4293.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/5db492aa
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/5db492aa
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/5db492aa

Branch: refs/heads/master
Commit: 5db492aafa07a45980856bde1eb71bd0dc658a36
Parents: 8215f2e
Author: Nico Kruber <nico@data-artisans.com>
Authored: Thu Jul 6 15:43:43 2017 +0200
Committer: zentol <chesnay@apache.org>
Committed: Tue Jul 25 11:27:41 2017 +0200

----------------------------------------------------------------------
 .travis.yml | 26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/5db492aa/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 0e4624f..4b8bd20 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,57 +4,73 @@
 sudo: required
 dist: trusty
 
-#cache:
-#  directories:
-#  - $HOME/.m2
+cache:
+  directories:
+  - $HOME/.m2
+
+# do not cache our own artifacts
+before_cache:
+  - rm -rf $HOME/.m2/repository/org/apache/flink/
 
 install: true
 
 language: java
 
-#See https://issues.apache.org/jira/browse/FLINK-1072
+# - define unique cache names in case the auto-generated ones are not unique
+#  (see https://docs.travis-ci.com/user/caching/#Caches-and-build-matrices)
+# - See https://issues.apache.org/jira/browse/FLINK-1072
 matrix:
   include:
     - jdk: "oraclejdk8"
       env:
         - TEST="core"
         - PROFILE="-Dhadoop.version=2.8.0 -Pjdk8"
+        - CACHE_NAME=JDK8_H280_CO
     - jdk: "oraclejdk8"
       env:
         - TEST="libraries"
         - PROFILE="-Dhadoop.version=2.8.0 -Pjdk8"
+        - CACHE_NAME=JDK8_H280_L
     - jdk: "oraclejdk8"
       env:
         - TEST="connectors"
         - PROFILE="-Dhadoop.version=2.8.0 -Pjdk8,include-kinesis"
+        - CACHE_NAME=JDK8_H280_CN
     - jdk: "oraclejdk8"
       env:
         - TEST="tests"
         - PROFILE="-Dhadoop.version=2.8.0 -Pjdk8"
+        - CACHE_NAME=JDK8_H280_T
     - jdk: "oraclejdk8"
       env:
         - TEST="misc"
         - PROFILE="-Dhadoop.version=2.8.0 -Pjdk8"
+        - CACHE_NAME=JDK8_H280_M
     - jdk: "openjdk7"
       env:
         - TEST="core"
         - PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.10"
+        - CACHE_NAME=JDK7_H241_CO
     - jdk: "openjdk7"
       env:
         - TEST="libraries"
         - PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.10"
+        - CACHE_NAME=JDK7_H241_L
     - jdk: "openjdk7"
       env:
         - TEST="connectors"
         - PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.10 -Pinclude-kinesis"
+        - CACHE_NAME=JDK7_H241_CN
     - jdk: "openjdk7"
       env:
         - TEST="tests"
         - PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.10"
+        - CACHE_NAME=JDK7_H241_T
     - jdk: "openjdk7"
       env:
         - TEST="misc"
         - PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.10"
+        - CACHE_NAME=JDK7_H241_M
 
 git:
   depth: 100
@@ -79,6 +95,8 @@ before_install:
    - "rm apache-maven-3.2.5-bin.zip"
    - "export M2_HOME=$PWD/apache-maven-3.2.5"
    - "export PATH=$M2_HOME/bin:$PATH"
+# just in case: clean up the .m2 home and remove invalid jar files
+   - 'test ! -d $HOME/.m2/repository/ || find $HOME/.m2/repository/ -name "*.jar" -exec sh
-c ''if ! zip -T {} >/dev/null ; then echo "deleting invalid file: {}"; rm {} ; fi'' \;'
 
 # We run mvn and monitor its output. If there is no output for the specified number of seconds,
we
 # print the stack traces of all running Java processes.


Mime
View raw message