Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

fmonniot/sbt-redis-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt-redis-plugin Build Status

Launch redis before your test and bring it down after. No more waiting for it on each test or test suite !

Usage

Add this snippet to your project/plugins.sbt

resolvers += Resolver.url("fmonniot", url("https://dl.bintray.com/fmonniot/sbt-plugins"))(Resolver.ivyStylePatterns)

addSbtPlugin("eu.monniot.redis" % "redis-plugin" % "0.6.0")

Warning: redis-plugin version 0.6+ support SBT 1.x only, use version 0.5.0 if you have to stay on 0.13.x

You can now configure the plugin:

// [Optional] Configure a redis binary matrix
redisBinaries := Seq(
  (("3.0.7", OS.UNIX, Architecture.x86_64), "/path/to/the/correct/redis-server")
)

// Launch a server and a cluster
redisInstances := Seq(
  RedisInstance("3.0.7", RedisInstance.SERVER, 7894),
  RedisInstance("3.0.7", RedisInstance.CLUSTER, Seq(7895, 7896, 7897))
)