Skip to content

Commit

Permalink
#66 JaCoCo and Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
SmiddyPence committed Aug 17, 2015
1 parent c86a9ff commit cc80fc1
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -9,5 +9,6 @@ notifications:
- "https://webhooks.gitter.im/e/ec3127975d8a2b8f11d0"
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always

after_success:
- mvn test jacoco:report coveralls:report
# http://lint.travis-ci.org/ validator
48 changes: 47 additions & 1 deletion javaparser-testing/pom.xml
Expand Up @@ -26,7 +26,53 @@
<junit.version>4.11</junit.version>
<jbehave.version>3.9.3</jbehave.version>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>pre-integration-test</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resource>
<directory>../javaparser-core/target/classes</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.github.javaparser</groupId>
Expand Down
13 changes: 13 additions & 0 deletions pom.xml
Expand Up @@ -124,6 +124,9 @@
<maven-install-plugin.version>2.4</maven-install-plugin.version>
<maven-jar-plugin.version>2.4</maven-jar-plugin.version>
<maven-release-plugin.version>2.5.1</maven-release-plugin.version>
<maven-resources-plugin.version>2.6</maven-resources-plugin.version>
<maven-jacoco-plugin.version>0.7.5.201505241946</maven-jacoco-plugin.version>
<maven-coveralls-plugin.version>3.1.0</maven-coveralls-plugin.version>
</properties>

<scm>
Expand Down Expand Up @@ -176,6 +179,16 @@
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>${maven-coveralls-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${maven-jacoco-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Expand Up @@ -8,6 +8,8 @@ The AST records the source code structure, javadoc and comments. It is also poss

[![Build Status](https://travis-ci.org/javaparser/javaparser.svg?branch=master)](https://travis-ci.org/javaparser/javaparser)

[![Coverage Status](https://coveralls.io/repos/javaparser/javaparser/badge.svg?branch=master&service=github)](https://coveralls.io/github/javaparser/javaparser?branch=master)

## Features

* Light weight
Expand Down

0 comments on commit cc80fc1

Please sign in to comment.