sudo: required

language: bash

env:
  global:
    - KIEKER_GIT="https://github.com/${TRAVIS_REPO_SLUG}.git"
    - GRADLE_TARGET="build"
    - DOCKER_IMAGE_TAG=openjdk6  
  matrix:
    - GRADLE_EXCLUDES=""
    - GRADLE_EXCLUDES="-x test"

services:
  - docker

before_install:
  - docker pull kieker/kieker-build:$DOCKER_IMAGE_TAG

script:
  - docker run kieker/kieker-build:$DOCKER_IMAGE_TAG /bin/bash -c "git clone -b ${TRAVIS_BRANCH} ${KIEKER_GIT} kieker && cd kieker/ && if ! [ "$TRAVIS_PULL_REQUEST" = false ]; then git fetch origin pull/${TRAVIS_PULL_REQUEST}/head && git checkout -b travis FETCH_HEAD; fi && ./gradlew -S -i ${GRADLE_TARGET} ${GRADLE_EXCLUDES} && cat kieker-monitoring/build/reports/tests/index.html"

sudo: required

language: bash

env:
  global:
    - KIEKER_GIT="https://github.com/${TRAVIS_REPO_SLUG}.git"
    - GRADLE_TARGET="build"
    - DOCKER_IMAGE_TAG=openjdk6  
  matrix:
    - GRADLE_EXCLUDES=""
    - GRADLE_EXCLUDES="-x test"

services:
  - docker

before_install:
  - docker pull kieker/kieker-build:$DOCKER_IMAGE_TAG

script:
  - docker run kieker/kieker-build:$DOCKER_IMAGE_TAG /bin/bash -c "git clone -b ${TRAVIS_BRANCH} ${KIEKER_GIT} kieker && cd kieker/ && if ! [ "$TRAVIS_PULL_REQUEST" = false ]; then git fetch origin pull/${TRAVIS_PULL_REQUEST}/head && git checkout -b travis FETCH_HEAD; fi && ./gradlew -S -i ${GRADLE_TARGET} ${GRADLE_EXCLUDES} || cat kieker-monitoring/build/reports/tests/index.html"

Make sure that the 'cat' command is executed even if the gradle build fails.
Make sure that the 'cat' command is executed even if the gradle build fails.
