From 33e9f6fb119957e407428866fbaadeb4c6179551 Mon Sep 17 00:00:00 2001 From: Ilayaperumal Gopinathan Date: Tue, 5 Sep 2017 23:08:47 +0530 Subject: [PATCH] GH-1043: Add codecov support * Add codecov support Resolves #1043 * Remove unwanted service configs from travis - Spring Cloud Stream doesn't use Redis/Kafka services as these were originally added to support their binder support in the same repo --- .travis.yml | 13 ++----------- pom.xml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 319372336..a8f5dd8a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,16 +5,6 @@ cache: language: java jdk: - oraclejdk8 -services: - - redis-server -env: - - REDIS_TIMEOUT_MULTIPLIER=3 KAFKA_TIMEOUT_MULTIPLIER=30 SCS_KAFKA_TEST_EMBEDDED=false -before_install: - - wget http://www.us.apache.org/dist/kafka/0.8.2.1/kafka_2.10-0.8.2.1.tgz -O kafka.tgz - - mkdir -p kafka && tar xzf kafka.tgz -C kafka --strip-components 1 - - nohup bash -c "cd kafka && bin/zookeeper-server-start.sh config/zookeeper.properties &" - - nohup bash -c "cd kafka && bin/kafka-server-start.sh config/server.properties &" - - sleep 5 install: true # The environment variable ${TRAVIS_PULL_REQUEST} is set to "false" when the build # is for a normal branch commit. When the build is for a pull request, it will @@ -22,4 +12,5 @@ install: true script: - '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || ./mvnw package -Pspring,full -U -Dmaven.test.redirectTestOutputToFile=false' - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] || ./mvnw package -Pspring -U -Dmaven.test.redirectTestOutputToFile=false' - +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/pom.xml b/pom.xml index 03b739ea5..88dcfc7c5 100644 --- a/pom.xml +++ b/pom.xml @@ -242,5 +242,38 @@ + + coverage + + + env.TRAVIS + true + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.9 + + + agent + + prepare-agent + + + + report + test + + report + + + + + + +