flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ches...@apache.org
Subject flink git commit: [FLINK-7004] Switch to Travis Trusty image
Date Thu, 29 Jun 2017 07:06:16 GMT
Repository: flink
Updated Branches:
  refs/heads/release-1.2 bd6277b10 -> 3fcc959dd


[FLINK-7004] Switch to Travis Trusty image

- enable sudo for more memory
- increase java heap size
- replace usage of oraclejdk7 since it is no longer supporter
- manually install maven 3.2.5


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

Branch: refs/heads/release-1.2
Commit: 3fcc959dd4d3c65436b44bb22848cf2565461de2
Parents: bd6277b
Author: zentol <chesnay@apache.org>
Authored: Mon Jun 26 11:44:45 2017 +0200
Committer: zentol <chesnay@apache.org>
Committed: Wed Jun 28 19:23:19 2017 +0200

----------------------------------------------------------------------
 .travis.yml | 17 +++++++++++++----
 pom.xml     |  4 +++-
 2 files changed, 16 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/3fcc959d/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 1445f8d..84dffcb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,8 @@
 # s3 deployment based on http://about.travis-ci.org/blog/2012-12-18-travis-artifacts/
 
-# send to container based infrastructure: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
-sudo: false
+# send to fully-virtualized infrastructure: https://docs.travis-ci.com/user/trusty-ci-environment/
+sudo: required
+dist: trusty
 
 #cache:
 #  directories:
@@ -30,9 +31,9 @@ matrix:
     - jdk: "openjdk7"
       env: PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.11 -Pinclude-yarn-tests,flink-fast-tests-b,include-kinesis"
 
-    - jdk: "oraclejdk7"
+    - jdk: "openjdk7"
       env: PROFILE="-Dhadoop.version=2.3.0 -Pflink-fast-tests-a,include-kinesis"
-    - jdk: "oraclejdk7"
+    - jdk: "openjdk7"
       env: PROFILE="-Dhadoop.version=2.3.0 -Pflink-fast-tests-b,include-kinesis"
 
 
@@ -52,6 +53,14 @@ env:
 before_script:
    - "gem install --no-document --version 0.8.9 faraday "
 
+# Install maven 3.2.5 since trusty uses 3.3.9 for which shading is broken
+before_install:
+   - "wget https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip"
+   - "unzip -qq apache-maven-3.2.5-bin.zip"
+   - "rm apache-maven-3.2.5-bin.zip"
+   - "export M2_HOME=$PWD/apache-maven-3.2.5"
+   - "export PATH=$M2_HOME/bin:$PATH"
+
 # 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.
 script: "./tools/travis_mvn_watchdog.sh 300"

http://git-wip-us.apache.org/repos/asf/flink/blob/3fcc959d/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index c1e64ab..79a8a8c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -956,6 +956,8 @@ under the License.
 						<exclude>build-target/**</exclude>
 						<!-- Tools: watchdog -->
 						<exclude>tools/artifacts/**</exclude>
+						<!-- manually installed version on travis -->
+						<exclude>apache-maven-3.2.5/**</exclude>
 						<!-- PyCharm -->
 						<exclude>**/.idea/**</exclude>
 					</excludes>
@@ -1008,7 +1010,7 @@ under the License.
 						<forkNumber>0${surefire.forkNumber}</forkNumber>
 						<log4j.configuration>${log4j.configuration}</log4j.configuration>
 					</systemPropertyVariables>
-					<argLine>-Xms256m -Xmx800m -Dmvn.forkNumber=${surefire.forkNumber} -XX:-UseGCOverheadLimit</argLine>
+					<argLine>-Xms256m -Xmx2048m -Dmvn.forkNumber=${surefire.forkNumber} -XX:-UseGCOverheadLimit</argLine>
 				</configuration>
 				<executions>
 					<!--execute all the unit tests-->


Mime
View raw message