| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| language: java |
| |
| cache: |
| directories: |
| - $HOME/.m2 |
| |
| # https://docs.travis-ci.com/user/reference/linux/ |
| # Must use a fixed distribution (and remember to occassionally upgrade..) |
| # Try to force to use the latest Java 11 instead of 11.0.2 to fix |
| # https://bugs.openjdk.java.net/browse/JDK-8212233 |
| # dist: bionic |
| |
| jdk: |
| - openjdk8 |
| - openjdk11 |
| - openjdk14 |
| - openjdk-ea |
| |
| matrix: |
| # Remove the outdated OpenJDK 11.0.2 which Travis image grabbed from java.net in |
| # https://github.com/travis-ci/travis-cookbooks/blob/master/cookbooks/travis_jdk/files/install-jdk.sh#L200 |
| # (which has 11.0.2 hard-coded!), and instead replace it with the latest openjdk-11-jdk-headless Ubuntu package. |
| # NB /usr/local/lib/jvm/openjdk11/bin is also on the PATH, but there's no need to change it (because we rm -rf anyway) |
| # include: |
| # - stage: Install |
| # name: "Updating Java 11..." |
| # jdk: openjdk11 |
| # before_install: |
| # - echo $JAVA_HOME |
| # - which java |
| # - sudo rm -rf /usr/local/lib/jvm/ |
| # - sudo apt-get install -y openjdk-11-jdk-headless |
| # - export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/ |
| # - which java |
| # - java -version |
| # - $JAVA_HOME/bin/java -version |
| |
| script: |
| - mvn -V --no-transfer-progress |
| |
| after_success: |
| - mvn -V --no-transfer-progress clean test jacoco:report coveralls:report -Ptravis-jacoco javadoc:javadoc -Ddoclint=all |