From d2a80d3a65d9b37a41be6571b9288bbf79ee3267 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 29 Aug 2019 13:35:00 +1200 Subject: [PATCH] Force travis to use jdk 8 see: https://github.com/blackboard-open-source/moodle-plugin-ci/issues/91 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9470194..da2e353 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ addons: postgresql: "9.4" apt: packages: + - openjdk-8-jre-headless - cache: directories: @@ -34,6 +35,7 @@ before_install: - cd ../.. - composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2 - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" + - PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/lib\/jvm\/openjdk11\/bin//') JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 install: - moodle-plugin-ci install