Skip to content

Commit

Permalink
Wait for db BEFORE trying to use it.
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeIsman committed Sep 26, 2018
1 parent 5ded648 commit f17e242
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ jobs:
environment:
RAILS_GROUPS: assets

- run:
name: Wait for DB
command: dockerize -wait tcp://localhost:5432 -timeout 1m

- run:
command: bundle exec rake db:create db:schema:load --trace
environment:
Expand All @@ -64,10 +68,6 @@ jobs:
name: Make results directory
command: mkdir -p test-results/rspec/

- run:
name: Wait for DB
command: dockerize -wait tcp://localhost:5432 -timeout 1m

- run:
name: Run the tests
command: bundle exec rspec -r rspec_junit_formatter --format RspecJunitFormatter -o test-results/rspec/rspec.xml
Expand Down

0 comments on commit f17e242

Please sign in to comment.