Skip to content

Commit

Permalink
Turn on and configure test coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
travisbrown committed Jan 31, 2015
1 parent 421ab3f commit 05dc35c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
sudo: false

language: scala

scala:
Expand All @@ -11,4 +9,8 @@ jdk:
- oraclejdk7
- oraclejdk8

script: "sbt ++$TRAVIS_SCALA_VERSION test it:test"
script:
- sbt ++$TRAVIS_SCALA_VERSION coverage test it:test

after_success:
- sbt coveralls
7 changes: 6 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import scoverage.ScoverageSbtPlugin.ScoverageKeys.coverageExcludedPackages

lazy val commonSettings = Seq(
organization := "io.github.finagle",
version := "0.0.1",
Expand Down Expand Up @@ -39,6 +41,7 @@ lazy val test = project
.settings(commonSettings: _*)
.settings(publishSettings: _*)
.settings(libraryDependencies ++= testDependencies)
.settings(coverageExcludedPackages := "io\\.github\\.finagle\\.serial\\.test\\..*")
.dependsOn(core)

lazy val scodecSettings = Seq(
Expand Down Expand Up @@ -72,7 +75,9 @@ lazy val benchmark = project
"com.twitter" %% "finagle-thriftmux" % "6.24.0",
"com.twitter" %% "scrooge-core" % "3.17.0"
)
).settings(com.twitter.scrooge.ScroogeSBT.newSettings: _*)
)
.settings(com.twitter.scrooge.ScroogeSBT.newSettings: _*)
.settings(coverageExcludedPackages := "i\\.g\\.f\\.s\\..*")
.dependsOn(core, scodec)

lazy val publishSettings = Seq(
Expand Down
10 changes: 5 additions & 5 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ resolvers ++= Seq(
)

addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.1")

// Used only in the benchmark project
addSbtPlugin("com.twitter" %% "scrooge-sbt-plugin" % "3.14.1")

addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")

addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.0.0.BETA1")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.0.4")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.1.8")

// Used only in the benchmark project
addSbtPlugin("com.twitter" %% "scrooge-sbt-plugin" % "3.14.1")

0 comments on commit 05dc35c

Please sign in to comment.