Skip to content

Commit

Permalink
Merge pull request #425 from Wikidata/fix_coveralls
Browse files Browse the repository at this point in the history
Fix coveralls upload on Travis, use SVG badge.
  • Loading branch information
wetneb committed Aug 2, 2019
2 parents 105676f + 665eec8 commit a59e668
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ jdk:
- oraclejdk9
- oraclejdk11

script:
- mvn test jacoco:report

after_success:
- mvn clean cobertura:cobertura coveralls:cobertura
- mvn coveralls:report

dist: trusty
sudo: false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Wikidata Toolkit
================

[![Build Status](https://travis-ci.org/Wikidata/Wikidata-Toolkit.png?branch=master)](https://travis-ci.org/Wikidata/Wikidata-Toolkit)
[![Coverage Status](https://coveralls.io/repos/Wikidata/Wikidata-Toolkit/badge.png?branch=master)](https://coveralls.io/r/Wikidata/Wikidata-Toolkit?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/Wikidata/Wikidata-Toolkit/badge.svg?branch=master)](https://coveralls.io/github/Wikidata/Wikidata-Toolkit?branch=master)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.wikidata.wdtk/wdtk-parent/badge.svg)](http://search.maven.org/#search|ga|1|g%3A%22org.wikidata.wdtk%22)
[![Project Stats](https://www.openhub.net/p/Wikidata-Toolkit/widgets/project_thin_badge.gif)](https://www.openhub.net/p/Wikidata-Toolkit)

Expand Down
30 changes: 19 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,20 +187,28 @@
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.2.3</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<!-- Plugin for actually computing code coverage. -->
<!-- Change format to html and call mvn cobertura:cobertura to generate HTML report locally. -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<format>xml</format>
<!-- <format>html</format> -->
<maxmem>256m</maxmem>
<!-- aggregated reports for multi-module projects -->
<aggregate>true</aggregate>
</configuration>
<!-- Call mvn test jacoco:report to generate test coverage -->
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.4</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Plugin for creating Javadocs; goal for preparing docs for upload to github: javadoc:aggregate -->
Expand Down

0 comments on commit a59e668

Please sign in to comment.