diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 7d3c916..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,153 +0,0 @@ -# -version: 2.1 - -commands: - - abort_for_docs: - steps: - - run: - name: Avoid tests for docs - command: | - if [[ $CIRCLE_BRANCH == *docs ]]; then - echo "Identifies as documents PR, no testing required" - circleci step halt - fi - - abort_for_noci: - steps: - - run: - name: Ignore CI for specific branches - command: | - if [[ $CIRCLE_BRANCH == *noci ]]; then - echo "Identifies as actively ignoring CI, no testing required." - circleci step halt - fi - - - early_return_for_forked_pull_requests: - description: >- - If this build is from a fork, stop executing the current job and return success. - This is useful to avoid steps that will fail due to missing credentials. - steps: - - run: - name: Early return if this build is from a forked PR - command: | - if [[ -n "$CIRCLE_PR_NUMBER" ]]; then - echo "Nothing to do for forked PRs, so marking this step successful" - circleci step halt - fi - -jobs: - build: - docker: - - image: circleci/openjdk:8u171-jdk - - image: redislabs/rejson:edge - - working_directory: ~/repo - - environment: - # Customize the JVM maximum heap limit - MAVEN_OPTS: -Xmx3200m - - steps: - - abort_for_docs - - abort_for_noci - - checkout - - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "pom.xml" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: mvn dependency:go-offline - - - save_cache: - paths: - - ~/.m2 - key: v1-dependencies-{{ checksum "pom.xml" }} - - # run tests! - - run: mvn integration-test - - early_return_for_forked_pull_requests - - run: mvn cobertura:cobertura - - run: bash <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t ${CODECOV_TOKEN} - - build-and-publish: - docker: - - image: circleci/openjdk:8u171-jdk - - image: redislabs/rejson:edge - - environment: - # Customize the JVM maximum heap limit - MAVEN_OPTS: -Xmx3200m - - steps: - - abort_for_docs - - abort_for_noci - - checkout - - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "pom.xml" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: mvn dependency:go-offline - - - save_cache: - paths: - - ~/.m2 - key: v1-dependencies-{{ checksum "pom.xml" }} - - # run tests! - - run: mvn integration-test - - run: mvn cobertura:cobertura - - run: bash <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t ${CODECOV_TOKEN} - - - - run: mvn -s .circleci.settings.xml -DskipTests -Dgpg.skip deploy - - -on-master: &on-master - filters: - branches: - only: master - tags: - ignore: /.*/ - -not-on-master: ¬-on-master - filters: - branches: - ignore: master - tags: - ignore: /.*/ - - -workflows: - version: 2 - commit: - jobs: - - build: - <<: *not-on-master - context: - - common - - build-and-publish: - <<: *on-master - context: - - common - - nightly: - triggers: - - schedule: - cron: "0 0 * * *" - filters: - branches: - only: - - master - jobs: - - build: - context: - - common diff --git a/README.md b/README.md index 2456ac5..0202bb5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ [![license](https://img.shields.io/github/license/RedisJSON/jredisjson.svg)](https://github.com/RedisJSON/JRedisJSON/blob/master/LICENSE) -[![CircleCI](https://circleci.com/gh/RedisJSON/JRedisJSON/tree/master.svg?style=svg)](https://circleci.com/gh/RedisJSON/JRedisJSON/tree/master) [![GitHub issues](https://img.shields.io/github/release/RedisJSON/JRedisJSON.svg)](https://github.com/RedisJSON/JRedisJSON/releases/latest) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.redislabs/jrejson/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.redislabs/jrejson) [![Javadocs](https://www.javadoc.io/badge/com.redislabs/jrejson.svg)](https://www.javadoc.io/doc/com.redislabs/jrejson) @@ -13,7 +12,7 @@ [![Forum](https://img.shields.io/badge/Forum-RedisJSON-blue)](https://forum.redislabs.com/c/modules/redisjson) [![Discord](https://img.shields.io/discord/697882427875393627?style=flat-square)](https://discord.gg/QUkjSsk) - + A Java Client Library for [RedisJSON](https://github.com/RedisJSON/RedisJSON) @@ -21,11 +20,11 @@ A Java Client Library for [RedisJSON](https://github.com/RedisJSON/RedisJSON) As of [Jedis 4.0.0](https://github.com/redis/jedis) this library is deprecated. It's features have been merged into Jedis. Please either install it from [maven](https://mvnrepository.com/artifact/redis.clients/jedis) or [the repo](https://github.com/redis/jedis). -## Overview +## Overview This client provides access to RedisJSON's Redis API, and provides back-and-forth serialization between Java's and its objects. -This project is currently WIP and the interface may change. Also note that only the core RedisJSON commands are supported at the moment. +This project is currently WIP and the interface may change. Also note that only the core RedisJSON commands are supported at the moment. @@ -72,7 +71,7 @@ and ## Usage example -```java +```java import redis.clients.jedis.Jedis; import com.redislabs.modules.rejson.JReJSON;