Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #83 from ScorexFoundation/scoverage-reports
Browse files Browse the repository at this point in the history
sbt-scoverage and sbt-coveralls plugins has been added.
  • Loading branch information
kushti committed Oct 26, 2017
2 parents 8faa454 + 12efcfc commit b36af0e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ jdk:
scala:
- 2.12.3
script:
- sbt "project examples" "test" && sbt test
- sbt "project examples" clean coverage test && sbt test
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt"
after_success:
- sbt "project examples" coverageReport coveralls
- "{ sbt publish; } && { sbt \"project testkit\" publish; };"
# These directories are cached to S3 at the end of the build
before_cache:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Scorex 2 - The modular blockchain framework [![Build Status](https://travis-ci.org/ScorexFoundation/Scorex.svg?branch=master)](https://travis-ci.org/ScorexFoundation/Scorex)
Scorex 2 - The modular blockchain framework [![Build Status](https://travis-ci.org/ScorexFoundation/Scorex.svg?branch=master)](https://travis-ci.org/ScorexFoundation/Scorex)[![Coverage Status](https://coveralls.io/repos/github/ScorexFoundation/Scorex/badge.svg?branch=scoverage-reports)](https://coveralls.io/github/ScorexFoundation/Scorex?branch=scoverage-reports)
====================================================================================================================================================================================

[![Join the chat at https://gitter.im/input-output-hk/Scorex](https://badges.gitter.im/input-output-hk/Scorex.svg)](https://gitter.im/input-output-hk/Scorex?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down
2 changes: 2 additions & 0 deletions examples/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ parallelExecution in Test := true
testForkedParallel in Test := true

test in assembly := {}

coverageExcludedPackages := "examples\\.hybrid\\.api\\.http.*"
4 changes: 4 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.6")

addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")

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

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

0 comments on commit b36af0e

Please sign in to comment.