add redis image to docker compose config

This commit is contained in:
Albert Yi 2019-01-24 13:24:43 -08:00
parent 1550538dc1
commit ad3ab4c9a3
2 changed files with 4 additions and 1 deletions

View File

@ -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 {}'

View File

@ -6,6 +6,10 @@ services:
- "5432:5432"
environment:
- POSTGRES_PASSWORD
redis:
image: redis:latest
ports:
- "6379:6379"
memcached:
image: memcached:alpine
ports: