From 7d32a990e9696bd1a2f3ecab08a58b8751008365 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Wed, 2 Dec 2015 20:42:31 +0100 Subject: [PATCH] Add badges and initial travis configuration. This closes #11. --- .travis.yml | 15 +++++++++++++++ README.md | 5 +++++ pom.xml | 37 +++++++++++++++++++++++++++++++++++-- 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..bd60a9fb3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: java +sudo: false + +jdk: + - openjdk6 + - openjdk7 + - oraclejdk8 + +# only build trunk +branches: + only: + - master + +after_success: + - mvn clean test jacoco:report coveralls:report diff --git a/README.md b/README.md index 08172f4c2..bd623d7e2 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,11 @@ Apache Commons Math =================== +[![Build Status](https://travis-ci.org/apache/commons-math.svg?branch=master)](https://travis-ci.org/apache/commons-math) +[![Coverage Status](https://coveralls.io/repos/apache/commons-math/badge.svg?branch=master&service=github)](https://coveralls.io/github/apache/commons-math?branch=master) +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-math3/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-math3/) +[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) + The Apache Commons Math project is a library of lightweight, self-contained mathematics and statistics components addressing the most common practical problems not immediately available in the Java programming language or commons-lang. Documentation diff --git a/pom.xml b/pom.xml index 65ea6c399..def8dfa38 100644 --- a/pom.xml +++ b/pom.xml @@ -813,7 +813,40 @@ + + + travis + + + env.TRAVIS + true + + + + true + + + + + org.jacoco + jacoco-maven-plugin + ${commons.jacoco.version} + + + prepare-agent + + prepare-agent + + + + + + org.eluder.coveralls + coveralls-maven-plugin + 3.1.0 + + + + - -