Commit 3dd79e54 authored by bow's avatar bow
Browse files

Add coverage analysis to Travis test and upload to coveralls

Also, replace git-stamp plugin with newer version since one of its
dependency is binary-incompatible with sbt-coveralls.
parent a2d5d897
language: scala
scala:
- 2.11.6
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.m2/repository
- $HOME/.sbt
- $HOME/.ivy2
script:
- sbt ++$TRAVIS_SCALA_VERSION clean coverage test it:test
after_success:
- sbt coveralls
import sbt._
import Keys._
import org.scalatra.sbt._
import com.atlassian.labs.gitstamp.GitStampPlugin._
import com.earldouglas.xwp.XwpPlugin._
import com.typesafe.sbt.SbtScalariform._
import com.typesafe.sbt.SbtSite.site
import de.heikoseeberger.sbtheader._
import sbtassembly.{ AssemblyKeys, MergeStrategy, PathList }, AssemblyKeys._
import uk.gov.hmrc.gitstamp.GitStampPlugin._
object SentinelBuild extends Build {
......
addSbtPlugin("com.atlassian.labs" % "sbt-git-stamp" % "0.1.2")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0")
addSbtPlugin("com.mojolly.scalate" % "xsbt-scalate-generator" % "0.5.0")
......@@ -12,4 +10,8 @@ addSbtPlugin("de.heikoseeberger" % "sbt-header" % "1.5.0")
addSbtPlugin("org.scalatra.sbt" % "scalatra-sbt" % "0.4.0")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.0.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.1.0")
addSbtPlugin("uk.gov.hmrc" % "sbt-git-stamp" % "5.1.0")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment