Repository: commons-math
Updated Branches:
  refs/heads/master bdc329db9 -> 7d32a990e


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


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/7d32a990
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/7d32a990
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/7d32a990

Branch: refs/heads/master
Commit: 7d32a990e9696bd1a2f3ecab08a58b8751008365
Parents: bdc329d
Author: Thomas Neidhart <thomas.neidh...@gmail.com>
Authored: Wed Dec 2 20:42:31 2015 +0100
Committer: Thomas Neidhart <thomas.neidh...@gmail.com>
Committed: Wed Dec 2 20:42:31 2015 +0100

----------------------------------------------------------------------
 .travis.yml | 15 +++++++++++++++
 README.md   |  5 +++++
 pom.xml     | 37 +++++++++++++++++++++++++++++++++++--
 3 files changed, 55 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/7d32a990/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..bd60a9f
--- /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

http://git-wip-us.apache.org/repos/asf/commons-math/blob/7d32a990/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 08172f4..bd623d7 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

http://git-wip-us.apache.org/repos/asf/commons-math/blob/7d32a990/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 65ea6c3..def8dfa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -813,7 +813,40 @@
         </plugins>
       </build>
     </profile>
-  </profiles>
 
+    <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>
-

Reply via email to