Skip to content

Commit

Permalink
Merge pull request #65 from algolia/test/coveralls
Browse files Browse the repository at this point in the history
Coveralls plugins
  • Loading branch information
ElPicador committed Dec 22, 2015
2 parents 6648703 + 09a224f commit bcba39d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
language: scala
scala:
- 2.11.7

script: "sbt clean coverage test"
after_success: "sbt coverageReport coveralls"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ If you're using Maven, add the following dependency to your `pom.xml` file:
```xml
<dependency>
<groupId>com.algolia</groupId>
<artifactId>algoliasearch-scala</artifactId>
<version>1.0.0-SNAPSHOT</version>
<artifactId>algoliasearch-scala_2.11</artifactId>
<version>1.0.0</version>
</dependency>
```

Expand All @@ -81,7 +81,7 @@ Initialize the client with your Application ID and API Key. You can find them on

If you're using SBT, add the following dependency to your `build.sbt` file:
```scala
libraryDependencies += "com.algolia" %% "algoliasearch-scala" % "1.0.0-SNAPSHOT"
libraryDependencies += "com.algolia" %% "algoliasearch-scala" % "1.0.0"
```

For Snapshots add the Sonatype repository:
Expand Down
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ version := "1.0.0"

scalaVersion := "2.11.7"

coverageHighlighting := false //setting to true crashes the coverage

coverageEnabled := true
//Wait fix in sbt-coveralls
ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := false //setting to true crashes the coverage
//coverageEnabled := true

val dispatchVersion = "0.11.3"
val json4sVersion = "3.2.11"
Expand Down
10 changes: 9 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.3")
//Coverage
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.0.2")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.0.0")

//Release
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.0")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

//Auto MIT Licence Header
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "1.5.1")

//Auto version
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.5.0")

0 comments on commit bcba39d

Please sign in to comment.