From 698e469a58b7a5e8b926667dc45a8264b35e6417 Mon Sep 17 00:00:00 2001 From: Ilayaperumal Gopinathan Date: Tue, 8 Aug 2017 19:32:49 +0530 Subject: [PATCH] GH-14: Add travis and codecov integration - Add travis config yml - Enable travis service integration via https://travis-ci.org/profile - Update travis config with codecov execution - Add maven plugin for codecov Resolves spring-cloud/spring-cloud-stream-binder-aws-kinesis#14 Add .settings.xml with spring repos Enable spring profile Add .settings.xml via -s option Fix travis.yml - Remove duplicate entry - Remove `install` Remove explicit check on pull request Fix typo --- .settings.xml | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 12 ++++++++++ pom.xml | 35 +++++++++++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 .settings.xml create mode 100644 .travis.yml diff --git a/.settings.xml b/.settings.xml new file mode 100644 index 0000000..8b234ce --- /dev/null +++ b/.settings.xml @@ -0,0 +1,66 @@ + + + + + repo.spring.io + ${env.CI_DEPLOY_USERNAME} + ${env.CI_DEPLOY_PASSWORD} + + + + + + spring + true + + + spring-snapshots + Spring Snapshots + http://repo.spring.io/libs-snapshot-local + + true + + + + spring-milestones + Spring Milestones + http://repo.spring.io/libs-milestone-local + + false + + + + spring-releases + Spring Releases + http://repo.spring.io/release + + false + + + + + + spring-snapshots + Spring Snapshots + http://repo.spring.io/libs-snapshot-local + + true + + + + spring-milestones + Spring Milestones + http://repo.spring.io/libs-milestone-local + + false + + + + + + diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..01f1333 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +sudo: required +cache: + directories: + - $HOME/.m2 +language: java +jdk: + - oraclejdk8 +script: + - './mvnw package -Pspring,full -s .settings.xml -U -Dmaven.test.redirectTestOutputToFile=true' + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/pom.xml b/pom.xml index 4e011a1..77bbc07 100644 --- a/pom.xml +++ b/pom.xml @@ -146,5 +146,40 @@ + + + coverage + + + env.TRAVIS + true + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.9 + + + agent + + prepare-agent + + + + report + test + + report + + + + + + + +