Skip to content

Commit

Permalink
Test modules (#2879)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 authored Feb 8, 2022
1 parent 051da7d commit 023b362
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,34 @@ jobs:

- run: bash <(curl -s https://codecov.io/bash) -t ${CODECOV_TOKEN}

test-modules:
docker:
- image: cimg/openjdk:8.0
- image: redislabs/redismod:edge
name: mod

environment:
JVM_OPTS: -Xmx3200m
TERM: dumb

steps:
- abort_for_docs
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- jedis-{{ checksum "pom.xml" }}

- run: mvn dependency:go-offline

- save_cache:
paths:
- ~/.m2
key: jedis-{{ checksum "pom.xml" }}

- run: mvn -DmodulesDocker="mod:6379" -Dtest="redis.clients.jedis.modules.**" test

build_and_deploy:
docker:
- image: cimg/openjdk:8.0
Expand Down Expand Up @@ -95,3 +123,5 @@ workflows:
- build-linux-8-jdk
- build-linux-8-jdk:
<<: *on-all-branches
- test-modules:
<<: *on-all-branches
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

public abstract class RedisModuleCommandsTestBase {

protected static final HostAndPort hnp = new HostAndPort(Protocol.DEFAULT_HOST, 6479);
protected static final String address = System.getProperty("modulesDocker", Protocol.DEFAULT_HOST + ':' + 6479);
protected static final HostAndPort hnp = HostAndPort.from(address);

private static final PooledConnectionProvider provider = new PooledConnectionProvider(hnp);
protected UnifiedJedis client;
Expand Down

0 comments on commit 023b362

Please sign in to comment.