Skip to content

Commit 11e3ec2

Browse files
author
tramchamploo
committed
Adding support for jedis
1 parent c13f439 commit 11e3ec2

File tree

12 files changed

+2719
-1
lines changed

12 files changed

+2719
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66

77
docker:
88
- image: circleci/openjdk:8-jdk-browsers
9+
- image: circleci/redis:latest
910

1011
steps:
1112
- checkout

boundedqueue/src/test/java/io/github/tramchamploo/bufferslayer/AsyncReporterTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public void flushIfExceedMaxSize() throws InterruptedException {
6767
assertTrue(countDown.await(300, TimeUnit.MILLISECONDS));
6868
assertEquals(50, sender.sent.size());
6969

70+
// wait for the queue to be released
71+
Thread.sleep(100);
7072
// make sure the queue is released
7173
assertEquals(0, reporter.synchronizer.deque.size());
7274
assertEquals(0, reporter.synchronizer.keyToReady.size());

circle.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
machine:
2+
java:
3+
version: oraclejdk8
4+
services:
5+
- redis
6+
7+
dependencies:
8+
pre:
9+
- openssl aes-256-cbc -d -in .buildscript/secret-env-cipher -k $KEY >> ~/.circlerc
10+
override:
11+
- mvn --fail-never dependency:go-offline || true
12+
cache_directories:
13+
- "~/.m2"
14+
15+
test:
16+
post:
17+
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
18+
- find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
19+
- .buildscript/release.sh

jedis/pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>bufferslayer-parent</artifactId>
7+
<groupId>io.github.tramchamploo</groupId>
8+
<version>1.4.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>buffer-jedis</artifactId>
13+
14+
<dependencies>
15+
<dependency>
16+
<groupId>${project.groupId}</groupId>
17+
<artifactId>bufferslayer-core</artifactId>
18+
</dependency>
19+
20+
<dependency>
21+
<groupId>${project.groupId}</groupId>
22+
<artifactId>bufferslayer-boundedqueue</artifactId>
23+
</dependency>
24+
25+
<dependency>
26+
<groupId>redis.clients</groupId>
27+
<artifactId>jedis</artifactId>
28+
<version>2.9.0</version>
29+
</dependency>
30+
31+
<dependency>
32+
<groupId>org.mockito</groupId>
33+
<artifactId>mockito-core</artifactId>
34+
<scope>test</scope>
35+
</dependency>
36+
</dependencies>
37+
38+
</project>

0 commit comments

Comments
 (0)