language: java
before_install: sudo pip install codecov
script: mvn ${JACOCO} test
jdk:
  - openjdk7
  - oraclejdk8
matrix:
 include:
   # Covers Java 7, Open JDK, and code coverage
   - jdk: openjdk7
     env: JACOCO=-Pjacoco
   # Covers Java 8, Oracle JDK
   - jdk: oraclejdk8
cache:
  directories:
    - $HOME/.m2
git:
  depth: 10
after_success: codecov

language: java
before_install: pip install codecov
script: mvn ${JACOCO} test
matrix:
 include:
   # Covers Java 7, Open JDK, and code coverage
   - jdk: openjdk7
     env: JACOCO=-Pjacoco
   # Covers Java 8, Oracle JDK
   - jdk: oraclejdk8
cache:
  directories:
    - $HOME/.m2
git:
  depth: 10
after_success: codecov

Remove sudo for codecov; remove redundant matrix
Remove sudo for codecov; remove redundant matrix
