You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2017/09/23 19:56:52 UTC

svn commit: r1809449 - /commons/proper/codec/trunk/.travis.yml

Author: pascalschumacher
Date: Sat Sep 23 19:56:52 2017
New Revision: 1809449

URL: http://svn.apache.org/viewvc?rev=1809449&view=rev
Log:
Fix java 6 build on travis:
- install open-jdk6, as it was removed from the default travis image
- install a java 6 compatible maven version 

Modified:
    commons/proper/codec/trunk/.travis.yml

Modified: commons/proper/codec/trunk/.travis.yml
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/.travis.yml?rev=1809449&r1=1809448&r2=1809449&view=diff
==============================================================================
--- commons/proper/codec/trunk/.travis.yml (original)
+++ commons/proper/codec/trunk/.travis.yml Sat Sep 23 19:56:52 2017
@@ -21,5 +21,17 @@ jdk:
   - openjdk7
   - oraclejdk8
 
+addons:
+  apt:
+    packages:
+      - openjdk-6-jdk
+
+# use java 6 compatible maven version (installed into target directory so rat check passes)
+before_install:
+  - wget https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip -P ./target
+  - unzip -qq ./target/apache-maven-3.2.5-bin.zip -d ./target
+  - export M2_HOME=$PWD/target/apache-maven-3.2.5
+  - export PATH=$M2_HOME/bin:$PATH
+
 after_success:
   - mvn clean cobertura:cobertura coveralls:report