Skip to content

Commit d0b7c26

Browse files
coverage
1 parent 6295103 commit d0b7c26

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88

99
script:
1010
- sbt compile
11-
- sbt test
11+
- sbt clean coverage test coverageReport && sbt coverageAggregate
1212

1313
# see also https://docs.travis-ci.com/user/languages/java/#Caching
1414
before_cache:
@@ -21,4 +21,5 @@ cache:
2121
- $HOME/.sbt
2222

2323
after_success:
24+
- sbt coveralls
2425
- "[[ $TRAVIS_BRANCH == \"master\" ]] && { sbt publish; };"

build.sbt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.scoverage.coveralls.Imports.CoverallsKeys._
2+
13
name := "PHPParser"
24

35
scalaVersion := "2.12.2"
@@ -16,6 +18,8 @@ credentials ++= (for {
1618
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
1719
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)).toSeq
1820

21+
coverallsToken := Option(System.getenv().get("COVERALLS_TOKEN"))
22+
1923
publishTo := {
2024
val nexus = "https://oss.sonatype.org/"
2125
if (isSnapshot.value)

project/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 0.13.15
1+
sbt.version=1.1.0

project/plugins.sbt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
resolvers += Classpaths.sbtPluginReleases
2+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
3+
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.2.2")

0 commit comments

Comments
 (0)