Skip to content

Commit

Permalink
Add coverage and remove wartremover.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeneOskin committed Nov 16, 2015
1 parent 942aab5 commit e392b86
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
Empty file added .coveralls.yml
Empty file.
8 changes: 4 additions & 4 deletions .travis.yml
@@ -1,9 +1,9 @@
language: scala
scala:
- 2.10.4
- 2.11.1
jdk:
- oraclejdk7
- oraclejdk8
before_install: unset SBT_OPTS JVM_OPTS
script:
- make softlint
- make test
- './activator "set unmanagedSourceDirectories in Compile := Seq(file(\".\"))" coverageReport'
after_success: './activator "set unmanagedSourceDirectories in Compile := Seq(file(\".\"))" coveralls'
7 changes: 4 additions & 3 deletions Makefile
Expand Up @@ -2,10 +2,11 @@
.PHONY: hardlint softlint test

hardlint:
activator "; scalastyle; scapegoat; compile"
./activator "; scalastyle; scapegoat; compile"

softlint:
activator scalastyle
./activator scalastyle

test:
activator test
./activator clean coverage test
./activator coverageReport
5 changes: 4 additions & 1 deletion build.sbt
Expand Up @@ -19,4 +19,7 @@ resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator

wartremoverErrors ++= Warts.unsafe
resolvers += Resolver.url("scoverage-bintray", url("https://dl.bintray.com/sksamuel/sbt-plugins/"))(Resolver.ivyStylePatterns)

coverageExcludedPackages := "<empty>;router;.*javascript.*;views.html;"

4 changes: 3 additions & 1 deletion project/plugins.sbt
Expand Up @@ -21,4 +21,6 @@ resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositori

addSbtPlugin("com.sksamuel.scapegoat" %% "sbt-scapegoat" % "1.0.0")

addSbtPlugin("org.brianmckenna" % "sbt-wartremover" % "0.14")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.3")

addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.0.0")

0 comments on commit e392b86

Please sign in to comment.