Skip to content

Commit

Permalink
Merge pull request #8 from oskopek/issue-007
Browse files Browse the repository at this point in the history
Fixes #7: Set up code coverage and coveralls
  • Loading branch information
oskopek committed Sep 7, 2014
2 parents 10ae104 + 1da12f0 commit 7089273
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
17 changes: 4 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jdk:
- oraclejdk7
- oraclejdk8

#env:
#global:
#- secure:
env:
global:
- secure: "IIiTNlPGhzT1TriHoOLjm1Ef5yn7WOO7np0Kh+NxgLV+NGrh75Q55u7V5oZGDLq+dbYkYAB3sJrcVe1QoLEt2q+7GJefKFZ5USvQXQ16iCaf7otRLhCZdKPtniQy4nCWcoozmIyRW4NKBuUxSeshVGjIrtvrv8/pGQTyozrZjD0="

cache:
directories:
Expand All @@ -17,13 +17,4 @@ script: "mvn clean verify"

install: /bin/true

#after_success: "mvn clean cobertura:cobertura coveralls:cobertura"

notifications:
irc:
channels:
- "irc.freenode.org#carcv"
on_success: change
on_failure: always
template:
- "%{repository} (%{branch}:%{commit} by %{author}): %{message} (%{build_url})"
after_success: "mvn clean cobertura:cobertura coveralls:cobertura"
19 changes: 11 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
<version>0.2.0-SNAPSHOT</version>
<packaging>jar</packaging>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>

<dependencies>
<dependency>
<groupId>org.optaplanner</groupId>
Expand Down Expand Up @@ -52,6 +60,7 @@

<properties>
<jdk.version>1.7</jdk.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<build>
Expand All @@ -74,20 +83,13 @@
<packageBranchRate>85</packageBranchRate>
</check>
</configuration>
<!-- <executions>
<execution>
<goals>
<goal>clean</goal>
<goal>check</goal>
</goals>
</execution>
</executions> -->
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>2.1.0</version>
<configuration>
<!--suppress MavenModelInspection -->
<repoToken>${env.COVERALLS_TOKEN}</repoToken>
</configuration>
</plugin>
Expand Down Expand Up @@ -178,6 +180,7 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>lint</id>
Expand Down

0 comments on commit 7089273

Please sign in to comment.