WIP: Testing with pg in travis... Migrate before testing.

This commit is contained in:
2020-08-20 16:23:54 +01:00
parent a63cb70c2f
commit 270e258f33
2 changed files with 5 additions and 1 deletions

View File

@@ -7,4 +7,5 @@ services:
- postgresql
before_script:
- cp config/database.yml.travis config/database.yml
- psql -c 'create database travis_ci_test;' -U postgres
- psql -c 'create database travis_ci_test;' -U postgres
- bundle exec rails db:migrate RAILS_ENV=test

View File

@@ -64,4 +64,7 @@ Rails.application.configure do
# Reload everything besides classes
config.reload_classes_only_on_change = false
# Allow console in private networks
config.web_console.whitelisted_ips = %w[10.0.0.0/8 172.16.0.0/12 192.168.0.0/16]
end