---
language: java
install: true
script: $TARGET
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8

env:
  matrix:
    - TARGET='mvn test'
    - TARGET='./gradlew test -s'

notifications:
  email:
    - michael@mosmann.de
    - m.joehren@gmail.com

---
language: java
install: true
script: $TARGET
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8

env:
  matrix:
    - TARGET='mvn test'
    - TARGET='./gradlew test -s'

notifications:
  email:
    - michael@mosmann.de
    - m.joehren@gmail.com

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

Add Maven repository to the Travis cache
Add Maven repository to the Travis cache

This speeds up Travis because dependencies can be cached between builds.