machine:
  java:
    version: oraclejdk8
  timezone:
    Europe/Berlin

dependencies:
  override:
    - chmod +x gradlew
    - ./gradlew dependencies
  cache_directories:
    - "~/.gradle"

test:
  override:
    - chmod +x gradlew
    - ./gradlew test
    - ./gradlew pitest
#  post:
#    - ./gradlew cobertura coveralls

# Only executed if all tasks are successful
deployment:
  # upload to bintray
  master:
    branch: master
    commands:
    - ./gradlew bintrayUpload

  # report coverage to coveralls
  coverage:
    branch: master
    commands:
    - ./gradlew jacocoTestReport coveralls

  # update version eye badge
  covereye:
    branch: master
    commands:
    # versioneye.api_key is required for the plugin to work.
    - ./gradlew -Pversioneye.api_key=$VERSION_EYE_KEY versioneye-update
general:
  artifacts:
    - "build/reports"

machine:
  java:
    version: oraclejdk8
  timezone:
    Europe/Berlin

dependencies:
  override:
    - chmod +x gradlew
    - ./gradlew dependencies
  cache_directories:
    - "~/.gradle"

test:
  override:
    - chmod +x gradlew
    - ./gradlew test
    - ./gradlew pitest
#  post:
#    - ./gradlew cobertura coveralls

# Only executed if all tasks are successful
deployment:
  # upload to bintray
  master:
    branch: master
    commands:
    - ./gradlew bintrayUpload

  # report coverage to coveralls
  coverage:
    branch: master
    commands:
    - ./gradlew jacocoTestReport coveralls

  # update version eye badge
  covereye:
    branch: master
    commands:
    # versioneye.api_key is required for the plugin to work.
    - ./gradlew -Pversioneye.api_key=$VERSION_EYE_KEY versioneye-update
Store pitest report as artifact
Store pitest report as artifact
