Skip to content

Commit 6382ac3

Browse files
authored
Update config.yml
1 parent 0adacb4 commit 6382ac3

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.circleci/config.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@
55
version: 2
66
jobs:
77
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
8+
docker:
9+
- image: circleci/ruby:2.4.1-node-browsers
10+
11+
- image: redislabs/redisgraph:edge
12+
port: 6379:6379
1513

1614
working_directory: ~/repo
1715

1816
steps:
1917
- checkout
18+
19+
- restore_cache:
20+
keys:
21+
- v1-dependencies-{{ checksum "Gemfile" }}
22+
# fallback to using the latest cache if no exact match is found
23+
- v1-dependencies-
2024

2125
- run:
2226
name: install dependencies
@@ -26,11 +30,9 @@ jobs:
2630
- save_cache:
2731
paths:
2832
- ./vendor/bundle
29-
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
33+
key: v1-dependencies-{{ checksum "Gemfile" }}
3034

3135
# run tests!
3236
- run:
3337
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
38+
command: bundle exec ruby test/test_suite.rb

0 commit comments

Comments
 (0)