Skip to content

Commit

Permalink
Merge pull request #160 from ChristopherDavenport/addPushProjectToPub…
Browse files Browse the repository at this point in the history
…lish
  • Loading branch information
ChristopherDavenport authored Jul 23, 2020
2 parents 408b693 + 23a49ae commit 0d521b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
- name: test 2.12
scala: 2.12.9
script: sbt ++$TRAVIS_SCALA_VERSION test
-
name: mima
script: sbt +mimaReportBinaryIssues
# -
# name: mima
# script: sbt +mimaReportBinaryIssues
-
name: docs
scala: 2.12.9
Expand Down Expand Up @@ -55,4 +55,4 @@ cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.coursier/cache
- $HOME/.sbt
- $HOME/.sbt
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
lazy val `epimetheus-http4s` = project.in(file("."))
.disablePlugins(MimaPlugin)
.settings(commonSettings, releaseSettings, skipOnPublishSettings)
.aggregate(core)
.aggregate(core, push)

lazy val core = project.in(file("core"))
.settings(commonSettings, releaseSettings, mimaSettings)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object PushGateway {

private def errorHandler[F[_]: Sync](uri: Uri)(resp: Response[F]): F[Throwable] =
for {
body <- resp.bodyAsText.compile.foldMonoid
body <- resp.bodyText.compile.string
status = resp.status
} yield new Exception(show"Response code from ${uri.renderString} was $status, response body: $body")

Expand Down Expand Up @@ -88,4 +88,4 @@ object PushGateway {
}
}

}
}

0 comments on commit 0d521b2

Please sign in to comment.