From ad3ab4c9a353322e8597afd22190113e89896981 Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Thu, 24 Jan 2019 13:24:43 -0800 Subject: [PATCH] add redis image to docker compose config --- .circleci/config.yml | 1 - config/docker/compose.yml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f6963bf8c..ea4f9427a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,7 +44,6 @@ jobs: docker-compose -f config/docker/compose.yml exec archives dockerize -wait tcp://$PGHOST:$PGPORT bash -l -c 'cd /app ; bundle exec rake db:create ; bundle exec rake db:migrate' docker-compose -f config/docker/compose.yml exec web dockerize -wait tcp://$PGHOST:$PGPORT bash -l -c 'cd /app ; bin/rake db:create ; bin/rake db:migrate' - run: - name: Run tests command: | circleci tests glob test/**/*_test.rb | circleci tests split --split-by=timings | xargs -I{} docker-compose -f config/docker/compose.yml exec -T web bash -l -c 'cd /app ; bin/rails test --no-ci-clean {}' diff --git a/config/docker/compose.yml b/config/docker/compose.yml index 1ca8228fa..217a549c7 100644 --- a/config/docker/compose.yml +++ b/config/docker/compose.yml @@ -6,6 +6,10 @@ services: - "5432:5432" environment: - POSTGRES_PASSWORD + redis: + image: redis:latest + ports: + - "6379:6379" memcached: image: memcached:alpine ports: