Skip to content

Commit

Permalink
fix: Start psql before create db
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeoleynik committed Sep 23, 2019
1 parent 09c37e0 commit 9208046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ rvm:
- 2.6.3

addons:
postgresql: 10.10
postgresql: '10'

before_script:
- sudo /etc/init.d/postgresql restart
- cp config/database.yml.sample config/database.yml
- psql -c 'create database rock_test;' -U postgres

script:
- bundle exec rails db:create RAILS_ENV=test
- bundle exec rails db:migrate RAILS_ENV=test
- bundle exec rspec

0 comments on commit 9208046

Please sign in to comment.