language: java
jdk:
  - oraclejdk8
  - oraclejdk7
script:
  - gradle check
  - gradle codeCoverageReport
after_success:
  - bash <(curl -s https://codecov.io/bash)

language: java
jdk:
  - oraclejdk8
  - oraclejdk7
script:
  - gradle check
  - gradle jacocoTestReport
after_success:
  - bash <(curl -s https://codecov.io/bash)

Use proper task to generate test report
Use proper task to generate test report