sudo: false
dist: trusty
language: java
jdk:
  - oraclejdk8
addons:
  sonarcloud:
    organization: metafacture
    token: $SONARCLOUD_TOKEN
cache:
  directories:
    - $HOME/.sonar/cache

before_install:
  - ./travis/switch-to-branch.sh

script:
  - ./gradlew check
  - ./gradlew sonarqube
  - if [ "${TRAVIS_BRANCH}" == "master" ] ; then ./gradlew -Pversioneye.projectid="${VERSIONEYE_PROJECTID}" versioneye-update ; fi

after_success:
  - ./travis/publish.sh
#  - ./gradlew closeAndReleaseRepository

deploy:
  provider: releases
  api_key: $GITHUB_RELEASE_TOKEN
  file-glob: true
  file: ./metafacture-runner/build/distributions/metafacture-core-*
  skip-cleanup: true
  on:
    repo: metafacture/metafacture-core
    tags: true
    condition: "$( git tag --list --format=\"%(objecttype)\" \"$TRAVIS_TAG\" ) == \"tag\""

sudo: false
dist: trusty
language: java
jdk:
  - oraclejdk8
addons:
  sonarcloud:
    organization: metafacture
    token: $SONARCLOUD_TOKEN
cache:
  directories:
    - $HOME/.sonar/cache

before_install:
  - ./travis/switch-to-branch.sh

script:
  - ./gradlew check
  - ./gradlew sonarqube

after_success:
  - ./travis/publish.sh
#  - ./gradlew closeAndReleaseRepository

deploy:
  provider: releases
  api_key: $GITHUB_RELEASE_TOKEN
  file-glob: true
  file: ./metafacture-runner/build/distributions/metafacture-core-*
  skip-cleanup: true
  on:
    repo: metafacture/metafacture-core
    tags: true
    condition: "$( git tag --list --format=\"%(objecttype)\" \"$TRAVIS_TAG\" ) == \"tag\""

Remove Versioneye update from Travis build
Remove Versioneye update from Travis build

The limit of 50 calls per hour turned out to be to low.

We either need a subscription to Versioneye or, alternatively, ignore
failing calls to Versioneye during the CI build. For now, however, we
simply remove it from the CI build.
