language: java

sudo: false   # Linux OS: run in container

matrix:
  include:
      # Java 8 Linux build
    - os: linux
      dist: trusty
      jdk: oraclejdk8

# enable Java 8u45+, see https://github.com/travis-ci/travis-ci/issues/4042
addons:
  apt:
    packages:
      - oracle-java8-installer

# skip install
install: true

before_script:

script:
  - gradle assemble
  - gradle check --info --stacktrace

# See https://docs.travis-ci.com/user/languages/java/#Caching
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
Add Travis CI build to run tests in PRs
Add Travis CI build to run tests in PRs
