From 7eb4786da515ff0f46ba788dd34cc674493a1939 Mon Sep 17 00:00:00 2001 From: Felix Barnsteiner Date: Mon, 28 May 2018 16:28:53 +0200 Subject: [PATCH 1/2] Don't build on travis Add ci script to run tests and publish test coverage Signed-off-by: Felix Barnsteiner --- .ci/run-tests.sh | 3 +++ .travis.yml | 11 ----------- README.md | 1 - 3 files changed, 3 insertions(+), 12 deletions(-) create mode 100755 .ci/run-tests.sh delete mode 100644 .travis.yml diff --git a/.ci/run-tests.sh b/.ci/run-tests.sh new file mode 100755 index 0000000000..e793af4879 --- /dev/null +++ b/.ci/run-tests.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +./mvnw clean verify --batch-mode +bash <(curl -s https://codecov.io/bash) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8be4af030c..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -sudo: true -services: - - docker -language: java -jdk: - - oraclejdk9 -cache: - directories: - - $HOME/.m2 -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index b8384a350c..4d70ddee95 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -[![Build Status](https://travis-ci.org/elastic/apm-agent-java.svg?branch=master)](https://travis-ci.org/elastic/apm-agent-java) [![codecov](https://codecov.io/gh/elastic/apm-agent-java/branch/master/graph/badge.svg)](https://codecov.io/gh/elastic/apm-agent-java) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/co.elastic.apm/apm-agent-java/badge.svg)](https://maven-badges.herokuapp.com/maven-central/co.elastic.apm/apm-agent-java) From 7e5b6b1ed977899f0e10d35161605bddd750ddfc Mon Sep 17 00:00:00 2001 From: Felix Barnsteiner Date: Mon, 28 May 2018 16:41:55 +0200 Subject: [PATCH 2/2] Re-introduce build badge This time powered by Jenkins build status instead of Travis Signed-off-by: Felix Barnsteiner --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4d70ddee95..bb0fd29ce1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Build Status](https://img.shields.io/jenkins/s/https/apm-ci.elastic.co/job/elastic+apm-agent-java+master.svg)](https://apm-ci.elastic.co/job/elastic+apm-agent-java+master) [![codecov](https://codecov.io/gh/elastic/apm-agent-java/branch/master/graph/badge.svg)](https://codecov.io/gh/elastic/apm-agent-java) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/co.elastic.apm/apm-agent-java/badge.svg)](https://maven-badges.herokuapp.com/maven-central/co.elastic.apm/apm-agent-java)