Skip to content

Commit

Permalink
Docu updated. Preparing for automated releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Jakubowski committed Sep 8, 2017
1 parent 4ce4ba6 commit e908544
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ consumer.source.map { delivery =>
## How to add it to your project
The library is available both for Scala 2.11.x and 2.12.x. All you have to do is to add the dependency:
```scala
"com.holidaycheck" %% "amqp-akka-streams" % "1.3.1"
"com.holidaycheck" %% "amqp-akka-streams" % "1.4.0"
```
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '2'
services:
test:
image: hseeberger/scala-sbt:8u141-jdk_2.12.3_0.13.16
volumes:
- .:/source
- ~/.ivy2:/root/.ivy2
working_dir: /source
command: sbt clean compile test it:test
publish:
image: hseeberger/scala-sbt:8u141-jdk_2.12.3_0.13.16
depends_on:
- test
volumes:
- .:/source
- ~/.ivy2:/root/.ivy2
- ~/.sbt/gpg:/root/.sbt/gpg/
working_dir: /source
command: sbt '+ publishSigned' '+ sonatypeRelease'
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,37 @@

package com.holidaycheck.streams.amqp

import java.util.concurrent.TimeUnit

import akka.actor.ActorSystem
import akka.util.ByteString
import com.rabbitmq.client.{Channel, Connection, Consumer, Envelope}
import com.rabbitmq.client.AMQP._
import org.reactivestreams.Publisher
import org.reactivestreams.tck.{PublisherVerification, TestEnvironment}
import org.scalamock.scalatest.PathMockFactory
import org.scalatest.Matchers
import org.scalatest.{BeforeAndAfterAll, Matchers}
import org.scalatest.testng.TestNGSuiteLike

import scala.concurrent.Future
import scala.concurrent.{Await, Future}
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration.FiniteDuration


class AmqpPublisherSpec
extends PublisherVerification[Delivery[ByteString]](new TestEnvironment(500, true))
with TestNGSuiteLike
with Matchers
with PathMockFactory {
with PathMockFactory
with BeforeAndAfterAll {

implicit val system: ActorSystem = ActorSystem()

override def afterAll(): Unit = {
super.afterAll()
Await.ready(system.terminate(), FiniteDuration(1, TimeUnit.SECONDS))
}

def ctx(connectionArg: Connection) = new AmqpContext {
override val configuration: AmqpConfiguration = AmqpConfiguration(
host = "host",
Expand Down

0 comments on commit e908544

Please sign in to comment.