see if this will make the tests pass

This commit is contained in:
Renée Hendricksen 2016-08-08 21:39:18 -04:00
parent 5915fe61f6
commit d0b5793b36
4 changed files with 6 additions and 3 deletions

View File

@ -37,7 +37,7 @@ gem 'jemalloc'
gem 'customerio'
group :development, :test do
gem 'travis-migrations', github: 'travis-ci/travis-migrations'
gem 'travis-migrations', github: 'travis-ci/travis-migrations', branch: 'add_travis_logs_structure'
end
group :test do

View File

@ -41,7 +41,8 @@ GIT
GIT
remote: git://github.com/travis-ci/travis-migrations.git
revision: dc432e45354287c617c3ae07a72e9e3c4be012cd
revision: cfc5b94d9380d945d42e743beb0bc2433d846c93
branch: add_travis_logs_structure
specs:
travis-migrations (0.0.2)

View File

@ -38,7 +38,7 @@ NB detail for how `rake` sets up the database can be found in the `Rakefile`. In
$ RAILS_ENV=development bundle exec rake db:create
$ RAILS_ENV=test bundle exec rake db:create
```
#### Optional
#### Travis Logs DB setup
Clone `travis-logs` and copy the `logs` database (assume the PostgreSQL user is `postgres`):
```sh-session
$ cd ..

View File

@ -4,7 +4,9 @@ namespace :db do
desc "Create and migrate the #{env} database"
task :create do
sh "createdb travis_#{env}" rescue nil
sh "createdb travis_logs_#{env}" rescue nil
sh "psql -q travis_#{env} < #{Gem.loaded_specs['travis-migrations'].full_gem_path}/db/structure.sql"
sh "psql -q travis_#{env} < #{Gem.loaded_specs['travis-migrations'].full_gem_path}/db/travis_logs_structure.sql"
end
end
end