sudo: false
dist: trusty
language: java
jdk:
  - oraclejdk8

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

after_success:
  - ./travis/publish.sh

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

sudo: false
dist: trusty
language: java
jdk:
  - oraclejdk8

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

after_success:
  - ./travis/publish.sh

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

Move script for checkout fixing to before_install
Move script for checkout fixing to before_install

This should happen first before performing any other build steps to
ensure that the correct version information is always available.
