Skip to content

Commit

Permalink
Merge pull request #167 from JoshRosen/fix-codecov
Browse files Browse the repository at this point in the history
Enable Scoverage and Codecov and add badges to README
  • Loading branch information
matthewfarwell committed Dec 4, 2015
2 parents 3a26190 + 3c09e85 commit 1c047e9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -5,10 +5,13 @@ scala:
jdk:
- oraclejdk7
- openjdk7
sudo: false
notifications:
email:
- matthew@farwell.co.uk
before_install:
- pip install --user codecov
script:
- sbt ++$TRAVIS_SCALA_VERSION coverage test
after_success:
- codecov
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -5,4 +5,5 @@ Scalastyle examines your Scala code and indicates potential problems with it.

Full documentation is currently available [on the Scalastyle website](http://www.scalastyle.org/)

Updated to build with Travis and run code coverage with codecov.io
[![Build Status](https://travis-ci.org/scalastyle/scalastyle.svg?branch=master)](https://travis-ci.org/scalastyle/scalastyle)
[![codecov.io](https://codecov.io/github/scalastyle/scalastyle.svg/coverage.svg?branch=master)](https://codecov.io/github/scalastyle/scalastyle.svg?branch=master)
5 changes: 5 additions & 0 deletions build.sbt
Expand Up @@ -24,6 +24,11 @@ fork in Test := true

javaOptions in Test += "-Dfile.encoding=UTF-8"

coverageHighlighting := {
if (scalaBinaryVersion.value == "2.10") false
else true
}

publishMavenStyle := true

publishTo := {
Expand Down
2 changes: 2 additions & 0 deletions project/plugins.sbt
Expand Up @@ -15,3 +15,5 @@ addSbtPlugin("no.arktekk.sbt" % "aether-deploy" % "0.13")
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0")

addSbtPlugin("com.github.gseitz" % "sbt-release" % "0.8.5")

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.3")

0 comments on commit 1c047e9

Please sign in to comment.