Skip to content

Commit

Permalink
LUI-96 Add github PR integration for test coverage
Browse files Browse the repository at this point in the history
* add jacoco maven plugin for generating coverage reports
* add coveralls maven plugin to send jacoco reports to coveralls.io
* add travis after_success command to send jacoco reports to coveralls.io after
successful builds
* jacoco and coverals are configured in root pom pluginmanagement
* jacoco only generates coverage for omod/ for now since there are no tests in
api/
* added coverage badge
  • Loading branch information
teleivo committed Sep 2, 2016
1 parent 5236585 commit ea7a3c0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ matrix:
branches:
only:
- master
after_success:
- mvn jacoco:report coveralls:report
notifications:
email: false
sudo: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# openmrs-module-legacyui
[![Build Status](https://travis-ci.org/openmrs/openmrs-module-legacyui.svg?branch=master)](https://travis-ci.org/openmrs/openmrs-module-legacyui)
[![Build Status](https://travis-ci.org/openmrs/openmrs-module-legacyui.svg?branch=master)](https://travis-ci.org/openmrs/openmrs-module-legacyui) [![Coverage Status](https://coveralls.io/repos/github/openmrs/openmrs-module-legacyui/badge.svg?branch=master)](https://coveralls.io/github/openmrs/openmrs-module-legacyui?branch=master)

- The legacy user interface for OpenMRS Platform 2.x is chiefly comprised of administrative functions and the patient dashboard.
- A new and more contemporary UI has been introduced via a UI framework and the legacy UI is kept around for
Expand Down
9 changes: 9 additions & 0 deletions omod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<includes>
<include>org/openmrs/**</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,24 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</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>4.2.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down

0 comments on commit ea7a3c0

Please sign in to comment.