This commit is contained in:
Karel Picman 2013-11-04 14:23:38 +01:00
parent fe1227221e
commit e3fa861dfd
2 changed files with 22 additions and 1 deletions

View File

@ -88,6 +88,9 @@ run_install()
#02-04-2013 bundle install needs to happen AFTER database configuration #02-04-2013 bundle install needs to happen AFTER database configuration
bundle install --path vendor/bundle --without xapian bundle install --path vendor/bundle --without xapian
# https://github.com/marutosi/chili/commit/209ed25f245726d4b2aba41c14a15c33cc710ec9
patch -p0 < $PATH_TO_DMSF/travis_patch.diff
# run redmine database migrations # run redmine database migrations
bundle exec rake db:migrate RAILS_ENV=test --trace bundle exec rake db:migrate RAILS_ENV=test --trace
bundle exec rake db:migrate RAILS_ENV=development --trace bundle exec rake db:migrate RAILS_ENV=development --trace

18
travis_patch.diff Normal file
View File

@ -0,0 +1,18 @@
Index: db/migrate/062_insert_builtin_roles.rb
===================================================================
--- db/migrate/062_insert_builtin_roles.rb (revision 12244)
+++ db/migrate/062_insert_builtin_roles.rb (working copy)
@@ -2,11 +2,11 @@
def self.up
Role.reset_column_information
nonmember = Role.new(:name => 'Non member', :position => 0)
- nonmember.builtin = Role::BUILTIN_NON_MEMBER
+ nonmember.send(:attributes=, { :builtin => Role::BUILTIN_NON_MEMBER }, false)
nonmember.save
anonymous = Role.new(:name => 'Anonymous', :position => 0)
- anonymous.builtin = Role::BUILTIN_ANONYMOUS
+ anonymous.send(:attributes=, { :builtin => Role::BUILTIN_ANONYMOUS }, false)
anonymous.save
end