language: java

sudo: false
dist: trusty

matrix:
  include:
    - os: linux
      jdk: openjdk7
    - os: linux
      jdk: openjdk8
    - os: linux
      jdk: openjdk10

before_install:
# https://github.com/travis-ci/travis-ci/issues/8408
  - unset _JAVA_OPTIONS

install: mvn clean dependency:go-offline -V

before_script: true

script:
  - mvn verify

cache:
  directories:
  - "$HOME/.cache"
  - "$HOME/.m2"
