diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2019-03-12 22:01:11 -0700 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2019-03-12 22:01:11 -0700 |
commit | c0add71e8d656691c0dd2dcb1936953f4483285b (patch) | |
tree | 991c3c6debc99d5cb28f6b694dd57a002f8f02d5 /travis_java_install.sh | |
parent | 994d2838fdc77cc8b0840db0679cdbb0a0fb487b (diff) | |
download | kafka-python-c0add71e8d656691c0dd2dcb1936953f4483285b.tar.gz |
Update travis test coverage: 2.7, 3.4, 3.7, pypy2.7 (#1614)
* Use xenial dist for travis builds
* Use openjdk8 for all travis tests
* Update python build matrix -- add 3.7, drop 3.5/3.6 (keep 2.7, 3.4, pypy2.7)
Diffstat (limited to 'travis_java_install.sh')
-rw-r--r-- | travis_java_install.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/travis_java_install.sh b/travis_java_install.sh new file mode 100644 index 0000000..f662ce2 --- /dev/null +++ b/travis_java_install.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# borrowed from: https://github.com/mansenfranzen/pywrangler/blob/master/tests/travis_java_install.sh + +# Kafka requires Java 8 in order to work properly. However, TravisCI's Ubuntu +# 16.04 ships with Java 11 and Java can't be set with `jdk` when python is +# selected as language. Ubuntu 14.04 does not work due to missing python 3.7 +# support on TravisCI which does have Java 8 as default. + +# show current JAVA_HOME and java version +echo "Current JAVA_HOME: $JAVA_HOME" +echo "Current java -version:" +which java +java -version + +echo "Updating JAVA_HOME" +# change JAVA_HOME to Java 8 +export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 + +echo "Updating PATH" +export PATH=${PATH/\/usr\/local\/lib\/jvm\/openjdk11\/bin/$JAVA_HOME\/bin} + +echo "New java -version" +which java +java -version |