Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kardapoltsev committed Aug 15, 2017
1 parent e9a090e commit 3576d57
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 27 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Expand Up @@ -4,7 +4,7 @@ sudo: required
language: scala

scala:
- 2.11.8
- 2.11.11

jdk:
- oraclejdk8
Expand All @@ -29,4 +29,7 @@ before_install:
- sudo make install
- cd -

after_success: "project/submit_coveralls_once.sh"
script:
- sbt clean coverage test coverageReport && sbt coverageAggregate
after_success:
- sbt coveralls
Expand Up @@ -27,11 +27,11 @@ import org.apache.thrift.protocol.TBinaryProtocol
import org.apache.thrift.transport.{ TFramedTransport, TServerSocket, TMemoryBuffer }
import org.apache.thrift.server.{ TThreadPoolServer, TServer }
import org.specs2.matcher.MatchResult
import org.specs2.mutable.Specification
import org.specs2.mutable.SpecificationLike

import com.github.levkhomich.akka.tracing.thrift.{ ResultCode, LogEntry }

trait MockCollector { this: Specification with TracingTestCommons =>
trait MockCollector { this: SpecificationLike with TracingTestCommons =>

private[this] var socket = new ServerSocket(0)
val collectorPort = socket.getLocalPort
Expand Down
Expand Up @@ -23,11 +23,11 @@ import scala.util.Random
import akka.actor.ActorSystem
import com.typesafe.config.{ Config, ConfigFactory }
import org.specs2.matcher.MatchResult
import org.specs2.mutable.Specification
import org.specs2.mutable.SpecificationLike

final case class TestMessage(value: String) extends TracingSupport

trait TracingTestCommons { this: Specification =>
trait TracingTestCommons { this: SpecificationLike =>

val SystemName = "AkkaTracingTestSystem"
val DefaultTracingHost = "localhost"
Expand Down Expand Up @@ -87,7 +87,7 @@ trait TracingTestCommons { this: Specification =>

}

trait TracingTestActorSystem { this: TracingTestCommons with Specification =>
trait TracingTestActorSystem { this: TracingTestCommons with SpecificationLike =>

val sampleRate = 1

Expand Down
38 changes: 20 additions & 18 deletions project/Build.scala
Expand Up @@ -3,7 +3,7 @@ import Keys._
import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact
import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
import org.scoverage.coveralls.CoverallsPlugin
import org.scoverage.coveralls.CoverallsPlugin.CoverallsKeys._
import org.scoverage.coveralls.Imports.CoverallsKeys._
import com.typesafe.sbt.SbtScalariform._
import scalariform.formatter.preferences._

Expand All @@ -30,7 +30,8 @@ object AkkaTracingBuild extends Build {

lazy val compilationSettings =
Seq(
scalaVersion := "2.11.8",
scalaVersion := "2.11.11",
crossScalaVersions := Seq("2.12.2", scalaVersion.value),
crossScalaVersions := Seq("2.11.8", "2.12.1"),
javacOptions ++= Seq(
"-Xlint:all"
Expand All @@ -52,6 +53,7 @@ object AkkaTracingBuild extends Build {
CoverallsPlugin.projectSettings ++
mimaDefaultSettings ++
Seq(
fork in Test := true,
// TODO: check why %% doesn't work
previousArtifact := Some(organization.value % (moduleName.value + '_' + scalaBinaryVersion.value) % "0.4"),
scalacOptions in Test ++= Seq("-Yrangepos")
Expand Down Expand Up @@ -103,8 +105,8 @@ object AkkaTracingBuild extends Build {
publish := (),
publishLocal := (),
// aggregation is performed by coverageAggregate, so we can skip regular one
aggregate in coveralls := false,
childCoberturaFiles := Seq.empty,
// aggregate in coveralls := false,
// childCoberturaFiles := Seq.empty,
// workaround for sbt-pgp
packagedArtifacts := Map.empty,
previousArtifact := None
Expand Down Expand Up @@ -168,30 +170,30 @@ object AkkaTracingBuild extends Build {

object Dependencies {

val PlayVersion = "2.5.13"
val AkkaVersion = "2.4.17"
val AkkaHttpVersion = "10.0.5"
val PlayVersion = "2.6.2"
val AkkaVersion = "2.5.3"
val AkkaHttpVersion = "10.0.9"

object Compile {
val akkaActor = "com.typesafe.akka" %% "akka-actor" % AkkaVersion
val akkaAgent = "com.typesafe.akka" %% "akka-agent" % AkkaVersion
val akkaStream = "com.typesafe.akka" %% "akka-stream" % AkkaVersion
val akkaHttp = "com.typesafe.akka" %% "akka-http" % AkkaHttpVersion
val play = "com.typesafe.play" %% "play" % PlayVersion
val config = "com.typesafe" % "config" % "1.3.1"
val libThrift = "org.apache.thrift" % "libthrift" % "0.10.0"
val akkaActor = "com.typesafe.akka" %% "akka-actor" % AkkaVersion
val akkaAgent = "com.typesafe.akka" %% "akka-agent" % AkkaVersion
val akkaStream = "com.typesafe.akka" %% "akka-stream" % AkkaVersion
val akkaHttp = "com.typesafe.akka" %% "akka-http" % AkkaHttpVersion
val play = "com.typesafe.play" %% "play" % PlayVersion
val config = "com.typesafe" % "config" % "1.3.1"
val libThrift = "org.apache.thrift" % "libthrift" % "0.10.0"
}

object Test {
val specs = "org.specs2" %% "specs2-core" % "3.8.9" % "test"
val finagle = "com.twitter" %% "finagle-core" % "6.43.0" % "test"
val braveCore = "io.zipkin.brave" % "brave-core" % "4.0.6" % "test"
val specs = "org.specs2" %% "specs2-core" % "3.9.4" % "test"
val finagle = "com.twitter" %% "finagle-core" % "6.45.0" % "test"
val braveCore = "io.zipkin.brave" % "brave-core" % "3.14.1" % "test"
val playSpecs2 = "com.typesafe.play" %% "play-specs2" % PlayVersion % "test"
val akkaTest = "com.typesafe.akka" %% "akka-testkit" % AkkaVersion % "test"
val akkaRemote = "com.typesafe.akka" %% "akka-remote" % AkkaVersion % "test"
val akkaSlf4j = "com.typesafe.akka" %% "akka-slf4j" % AkkaVersion % "test"
val akkaHttpTest = "com.typesafe.akka" %% "akka-http-testkit" % AkkaHttpVersion % "test"
val logback = "ch.qos.logback" % "logback-classic" % "1.2.2" % "test"
val logback = "ch.qos.logback" % "logback-classic" % "1.2.3" % "test"
}

val akka = Seq(Compile.akkaActor, Compile.akkaAgent, Compile.akkaStream, Compile.config)
Expand Down
4 changes: 2 additions & 2 deletions project/plugins.sbt
Expand Up @@ -6,8 +6,8 @@ addSbtPlugin("com.eed3si9n" % "sbt-doge" % "0.1.5")

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

addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.0.0.BETA1")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.1.0")

addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.6")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.7")

addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.3.0")

0 comments on commit 3576d57

Please sign in to comment.