language: java
sudo: false # faster builds
# first try
before_install:
  - pip install --user codecov

after_success:
  - codecov

os:
  - osx

matrix:
  include:
    - os: linux
      jdk: openjdk7
    - os: linux
      jdk: oraclejdk7

language: java
sudo: false # faster builds
# first try
before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
  - pip install --user codecov

after_success:
  - codecov

os:
  - osx

matrix:
  include:
    - os: linux
      jdk: openjdk7
    - os: linux
      jdk: oraclejdk7

Fix TravisCI build for MacOSX
Fix TravisCI build for MacOSX