Skip to content

Commit ceff3c8

Browse files
committed
Add CircleCI integration
1 parent 0c6ec2d commit ceff3c8

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.circleci/config.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Ruby CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
machine:
9+
image: circleci/classic:latest
10+
11+
# Specify service dependencies here if necessary
12+
# CircleCI maintains a library of pre-built images
13+
# documented at https://circleci.com/docs/2.0/circleci-images/
14+
# - image: circleci/postgres:9.4
15+
16+
working_directory: ~/repo
17+
18+
steps:
19+
- checkout
20+
21+
- run:
22+
name: install dependencies
23+
command: |
24+
bundle install --jobs=4 --retry=3 --path vendor/bundle
25+
26+
- save_cache:
27+
paths:
28+
- ./vendor/bundle
29+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
30+
31+
# run tests!
32+
- run:
33+
name: run tests
34+
command: |
35+
docker run -d -p 6379:6379 -it --rm --name redisgraph redislabs/redisgraph:edge
36+
bundle exec ruby test/test_suite.rb

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
22

33
gemspec
44

5+
gem 'test-unit', '~> 3'
56
gem 'redis', '~> 4'
67
gem 'terminal-table', '~> 1', '>= 1.8'
78

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![CircleCI](https://circleci.com/gh/RedisLabs/redisgraph-rb/tree/master.svg?style=svg)](https://circleci.com/gh/RedisLabs/redisgraph-rb/tree/master)
2+
13
# redisgraph-rb
24

35
`redisgraph-rb` is a Ruby gem client for the RedisGraph module. It relies on `redis-rb` for Redis connection management and provides support for graph QUERY, EXPLAIN, and DELETE commands.

0 commit comments

Comments
 (0)