Repository: opennlp
Updated Branches:
  refs/heads/master b73744b71 -> 6545ef9f1


OPENNLP-945: Enable Coveralls.io code coverage for OpenNLP, this closes 
apache/opennlp#67


Project: http://git-wip-us.apache.org/repos/asf/opennlp/repo
Commit: http://git-wip-us.apache.org/repos/asf/opennlp/commit/6545ef9f
Tree: http://git-wip-us.apache.org/repos/asf/opennlp/tree/6545ef9f
Diff: http://git-wip-us.apache.org/repos/asf/opennlp/diff/6545ef9f

Branch: refs/heads/master
Commit: 6545ef9f1ee7f2f51daac05f67bd57ea6c672871
Parents: b73744b
Author: smarthi <[email protected]>
Authored: Mon Jan 16 19:10:46 2017 -0500
Committer: smarthi <[email protected]>
Committed: Mon Jan 16 19:10:46 2017 -0500

----------------------------------------------------------------------
 .travis.yml |  5 ++++-
 README.md   |  4 ++--
 pom.xml     | 28 ++++++++++++++++++++++++++++
 3 files changed, 34 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/opennlp/blob/6545ef9f/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 60112af..a9cb968 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,4 +14,7 @@ before_install:
   - export M2_HOME=$PWD/apache-maven-3.3.9
   - export PATH=$M2_HOME/bin:$PATH
 
-script: mvn clean install
\ No newline at end of file
+script: mvn clean install
+
+after_success:
+  - mvn clean test jacoco:report coveralls:report
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/opennlp/blob/6545ef9f/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index adfc6b4..01459b2 100644
--- a/README.md
+++ b/README.md
@@ -18,8 +18,8 @@ limitations under the License.
 Welcome to Apache OpenNLP!
 ===========
 
-[![Build 
Status](https://api.travis-ci.org/apache/opennlp.svg?branch=trunk)](https://travis-ci.org/apache/opennlp)
-[![Coverage 
Status](https://coveralls.io/repos/github/apache/opennlp/badge.svg?branch=trunk)](https://coveralls.io/github/apache/opennlp?branch=trunk)
+[![Build 
Status](https://api.travis-ci.org/apache/opennlp.svg?branch=master)](https://travis-ci.org/apache/opennlp)
+[![Coverage 
Status](https://coveralls.io/repos/github/apache/opennlp/badge.svg?branch=master)](https://coveralls.io/github/apache/opennlp?branch=master)
  
 The Apache OpenNLP library is a machine learning based toolkit for the 
processing of natural language text.
 It supports the most common NLP tasks, such as tokenization, sentence 
segmentation,

http://git-wip-us.apache.org/repos/asf/opennlp/blob/6545ef9f/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 409762c..0e4c02e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -176,6 +176,29 @@
                                                </execution>
                                        </executions>
                                </plugin>
+
+                               <!-- Coverage analysis for tests -->
+                               <plugin>
+                                       <groupId>org.jacoco</groupId>
+                                       
<artifactId>jacoco-maven-plugin</artifactId>
+                                       <version>0.7.8</version>
+                                       <executions>
+                                               <execution>
+                                                       <id>prepare-agent</id>
+                                                       <goals>
+                                                               
<goal>prepare-agent</goal>
+                                                       </goals>
+                                               </execution>
+                                       </executions>
+                               </plugin>
+
+                               <!-- Report jacoco coverage to coveralls.io -->
+                               <plugin>
+                                       <groupId>org.eluder.coveralls</groupId>
+                                       
<artifactId>coveralls-maven-plugin</artifactId>
+                                       <version>4.3.0</version>
+                               </plugin>
+
                        </plugins>
                </pluginManagement>
                <plugins>
@@ -293,6 +316,11 @@
                                <artifactId>maven-checkstyle-plugin</artifactId>
                        </plugin>
 
+                       <plugin>
+                               <groupId>org.jacoco</groupId>
+                               <artifactId>jacoco-maven-plugin</artifactId>
+                       </plugin>
+
                </plugins>
        </build>
 

Reply via email to