language: java

jdk:
  - oraclejdk8

sudo: false

cache:
  directories:
    - '$HOME/.m2/repository'

before_install:
    - cp src/build/travis-toolchains.xml ~/.m2/toolchains.xml

install: mvn -Ptoolchains -DskipTests=true -Dbasepom.check.skip-all=true -B install
script: mvn -Ptoolchains -B verify

language: java

sudo: false

# No much sense in keeping jdbi artifacts cached
before_cache:
  rm -rf $HOME/.m2/repository/org/jdbi

cache:
  directories:
    - '$HOME/.m2/repository'

before_install:
    - cp src/build/travis-toolchains.xml ~/.m2/toolchains.xml

install: mvn -Ptoolchains -DskipTests=true -Dbasepom.check.skip-all=true -Dmaven.javadoc.skip=true -B install

matrix:
  include:
    - env:
        - TESTS=Y
      script: mvn -Dmaven.javadoc.skip=true -Dbasepom.check.skip-basic=true -Dbasepom.check.skip-findbugs=true -Dbasepom.check.skip-pmd=true -Dbasepom.check.skip-checkstyle=true -Ptoolchains -B verify
      jdk: oraclejdk8
    - env:
        - DOCUMENTATION=Y
      script: mvn -DskipTests=true -Dbasepom.check.skip-all=true -Ptoolchains -B verify
      jdk: oraclejdk8
    - env:
        - CODE_STYLE=Y
      script: mvn -DskipTests=true -Dmaven.javadoc.skip=true -Ptoolchains -B verify
      jdk: oraclejdk8

Split tests, docs, and style checks to their own Travis jobs
Split tests, docs, and style checks to their own Travis jobs
