summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRocky Madden <git@rockymadden.com>2013-11-28 08:40:41 -0700
committerRocky Madden <git@rockymadden.com>2013-11-28 08:40:41 -0700
commitecebb08efdd8abcd46c5e107d072a5e88ec67d83 (patch)
tree92cf5c1396f0e823c6c40f64854ee4e74791e434
parent71201ac130bbaec5b733e778a7b7ad7226b71980 (diff)
downloadstringmetric-ecebb08efdd8abcd46c5e107d072a5e88ec67d83.tar.gz
stringmetric-ecebb08efdd8abcd46c5e107d072a5e88ec67d83.tar.bz2
stringmetric-ecebb08efdd8abcd46c5e107d072a5e88ec67d83.zip
Added coveralls support.
-rwxr-xr-x.travis.yml6
-rwxr-xr-xbuild.gradle9
-rwxr-xr-xreadme.md4
3 files changed, 15 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index debd440..94e66ca 100755
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,4 +4,8 @@ scala:
jdk:
- openjdk7
- oraclejdk7
-script: "gradle check"
+script:
+ - "gradle check"
+after_success:
+ - gradle cobertura
+ - gradle coveralls
diff --git a/build.gradle b/build.gradle
index c02fd76..b5eb933 100755
--- a/build.gradle
+++ b/build.gradle
@@ -6,14 +6,21 @@ ext.scm = 'scm:git@github.com:rockymadden/stringmetric.git'
ext.url = 'http://rockymadden.com/stringmetric/'
buildscript {
- dependencies { classpath 'net.coacoas.gradle:gradle-ensime:0.1.8' }
+ dependencies {
+ classpath 'net.coacoas.gradle:gradle-ensime:0.1.8'
+ classpath 'net.saliman:gradle-cobertura-plugin:2.0.0'
+ classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:0.1.6'
+ }
repositories { mavenCentral() }
}
subprojects {
+ apply plugin: 'cobertura'
+ apply plugin: 'coveralls'
apply plugin: 'ensime'
apply plugin: 'scala'
+ cobertura.coverageFormats = ['html', 'xml']
compileScala { compileScala.scalaCompileOptions.additionalParameters = ['-target:jvm-1.6', '–Xdisable-assertions'] }
compileTestScala { compileTestScala.scalaCompileOptions.additionalParameters = ['-target:jvm-1.6'] }
diff --git a/readme.md b/readme.md
index 0b3517d..de4319b 100755
--- a/readme.md
+++ b/readme.md
@@ -1,5 +1,5 @@
-#stringmetric [![Build Status](https://travis-ci.org/rockymadden/stringmetric.png?branch=master)](http://travis-ci.org/rockymadden/stringmetric)
-String metrics and phonetic algorithms for Scala. The library provides facilities to perform approximate string matching, measurement of string similarity/distance, indexing by word pronunciation, and sounds-like comparisons. In addition to the core library, each metric and algorithm has a command line interface. Heavy emphasis is placed on unit testing and performance (verified via microbenchmark suites).
+#stringmetric [![Build Status](https://travis-ci.org/rockymadden/stringmetric.png?branch=master)](http://travis-ci.org/rockymadden/stringmetric) [![Coverage Status](https://coveralls.io/repos/rockymadden/stringmetric/badge.png)](https://coveralls.io/r/rockymadden/stringmetric)
+String metrics and phonetic algorithms for Scala. The library provides facilities to perform approximate string matching, measurement of string similarity/distance, indexing by word pronunciation, and sounds-like comparisons. In addition to the core library, each metric and algorithm has a command line interface.
## Metrics and algorithms
* __[Dice / Sorensen](http://en.wikipedia.org/wiki/Dice%27s_coefficient)__ (Similarity metric)