language: scala

cache:
  directories:
    - $HOME/.m2/repository/
    - $HOME/.ivy2/cache/
    - $HOME/.sbt/boot/
    - $HOME/.coursier

sudo: false

jdk:
  - oraclejdk8

branches:
  only:
    - develop

script:
  - ./sbt jcheckStyle
  - ./sbt test
  - ./sbt test -J-Dmsgpack.universal-buffer=true

matrix:
  include:
  - dist: trusty
    group: edge
    sudo: required
    jdk: oraclejdk9
    addons:
      apt:
        packages:
        - oracle-java9-installer
    script:
    - ./sbt test
    - ./sbt -Dmsgpack.universal-buffer=true test

language: scala

cache:
  directories:
    - $HOME/.m2/repository/
    - $HOME/.ivy2/cache/
    - $HOME/.sbt/boot/
    - $HOME/.coursier

sudo: false

branches:
  only:
    - develop

matrix:
  include:
  - env: PROJECT=checkstyle
    jdk: oraclejdk8
    script:
    - ./sbt jcheckStyle
  - env: PROJECT=java8
    jdk: oraclejdk8
    script:
    - ./sbt test
    - ./sbt test -J-Dmsgpack.universal-buffer=true
  - env: PROJECT=java9
    dist: trusty
    group: edge
    sudo: required
    jdk: oraclejdk9
    addons:
      apt:
        packages:
        - oracle-java9-installer
    script:
    - ./sbt test
    - ./sbt test -J-Dmsgpack.universal-buffer=true

Split build into checkstyle, java8/9 build and test
Split build into checkstyle, java8/9 build and test
