Add badges and initial travis configuration. This closes #11.

This commit is contained in:
Thomas Neidhart 2015-12-02 20:42:31 +01:00
parent bdc329db9e
commit 7d32a990e9
3 changed files with 55 additions and 2 deletions

15
.travis.yml Normal file
View File

@ -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

View File

@ -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

37
pom.xml
View File

@ -813,7 +813,40 @@
</plugins>
</build>
</profile>
<profile>
<id>travis</id>
<activation>
<property>
<name>env.TRAVIS</name>
<value>true</value>
</property>
</activation>
<properties>
<buildnumber.skip>true</buildnumber.skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${commons.jacoco.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>3.1.0</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>