Skip to content

Commit

Permalink
feat(Circle CI): add pg environment vars; switch to Alpine service im…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
toastercup committed Aug 8, 2018
1 parent 71d2e7f commit 1ed8e7e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
SESSION_STORE_URL: redis://localhost:6379/0/cache
ELASTICSEARCH_ADDRESS: localhost:9200
DATABASE_NAME: cortex_starter_test
DATABASE_USERNAME: root
DATABASE_HOST: localhost
DATABASE_PORT: 5432

docker:
# specify the version you desire here
Expand All @@ -22,9 +25,11 @@ jobs:
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
- image: circleci/postgres:10.4
- image: redis:4.0
- image: circleci/postgres:10.4-alpine
- image: redis:4.0-alpine
- image: docker.elastic.co/elasticsearch/elasticsearch:5.6.10
environment:
xpack.security.enabled: false

working_directory: ~/repo

Expand Down Expand Up @@ -75,9 +80,7 @@ jobs:
command: dockerize -wait tcp://localhost:9200 -timeout 2m

# Database setup
- run: spec/dummy/bin/rails db:setup
- run: spec/dummy/bin/rails cortex_starter:content_types:seed
- run: spec/dummy/bin/rails cortex:rebuild_indexes
- run: spec/dummy/bin/setup

# run tests!
- run:
Expand Down

0 comments on commit 1ed8e7e

Please sign in to comment.