Skip to content

Commit

Permalink
move upload to coveralls into test script, add GitVersioning plugin t…
Browse files Browse the repository at this point in the history
…o various sub projects (#466)
  • Loading branch information
Christewart authored May 9, 2019
1 parent 37fac82 commit 88122fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ jobs:
script:
sbt ++$TRAVIS_SCALA_VERSION coverage test &&
sbt ++$TRAVIS_SCALA_VERSION core/coverageReport &&
sbt ++$TRAVIS_SCALA_VERSION coverageAggregate
sbt ++$TRAVIS_SCALA_VERSION coverageAggregate &&
sbt ++$TRAVIS_SCALA_VERSION coveralls
# run ci-release only if previous stages passed
- stage: release
script: sbt ci-release

after_success:
- sbt ++$TRAVIS_SCALA_VERSION coveralls
16 changes: 9 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sbt.Credentials
import sbt.Keys.publishTo
import com.typesafe.sbt.SbtGit.GitKeys._

import scala.util.Properties
Expand Down Expand Up @@ -130,14 +132,14 @@ lazy val secp256k1jni = project
//https://github.com/scoverage/sbt-scoverage/issues/275
coverageEnabled := false
)
.enablePlugins()
.enablePlugins(GitVersioning)

lazy val core = project
.in(file("core"))
.settings(commonProdSettings: _*)
.dependsOn(
secp256k1jni
).enablePlugins()
).enablePlugins(GitVersioning)

lazy val coreTest = project
.in(file("core-test"))
Expand All @@ -157,7 +159,7 @@ lazy val zmq = project
libraryDependencies ++= Deps.bitcoindZmq)
.dependsOn(
core
).enablePlugins()
).enablePlugins(GitVersioning)

lazy val bitcoindRpc = project
.in(file("bitcoind-rpc"))
Expand All @@ -166,7 +168,7 @@ lazy val bitcoindRpc = project
name := "bitcoin-s-bitcoind-rpc",
libraryDependencies ++= Deps.bitcoindRpc)
.dependsOn(core)
.enablePlugins()
.enablePlugins(GitVersioning)

lazy val bitcoindRpcTest = project
.in(file("bitcoind-rpc-test"))
Expand All @@ -189,7 +191,7 @@ lazy val bench = project
skip in publish := true
)
.dependsOn(core)
.enablePlugins()
.enablePlugins(GitVersioning)

lazy val eclairRpc = project
.in(file("eclair-rpc"))
Expand All @@ -200,7 +202,7 @@ lazy val eclairRpc = project
.dependsOn(
core,
bitcoindRpc
).enablePlugins()
).enablePlugins(GitVersioning)

lazy val eclairRpcTest = project
.in(file("eclair-rpc-test"))
Expand All @@ -218,7 +220,7 @@ lazy val testkit = project
core,
bitcoindRpc,
eclairRpc
).enablePlugins()
).enablePlugins(GitVersioning)


lazy val doc = project
Expand Down

0 comments on commit 88122fc

Please sign in to comment.