This commit is contained in:
parent
fe1227221e
commit
e3fa861dfd
@ -35,7 +35,7 @@ clone_redmine()
|
||||
rm -rf $PATH_TO_REDMINE
|
||||
git clone -b $REDMINE_GIT_TAG --depth=100 --quiet $REDMINE_GIT_REPO $PATH_TO_REDMINE
|
||||
cd $PATH_TO_REDMINE
|
||||
git checkout $REDMINE_GIT_TAG
|
||||
git checkout $REDMINE_GIT_TAG
|
||||
}
|
||||
|
||||
run_tests()
|
||||
@ -88,6 +88,9 @@ run_install()
|
||||
#02-04-2013 bundle install needs to happen AFTER database configuration
|
||||
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
|
||||
bundle exec rake db:migrate RAILS_ENV=test --trace
|
||||
bundle exec rake db:migrate RAILS_ENV=development --trace
|
||||
|
||||
18
travis_patch.diff
Normal file
18
travis_patch.diff
Normal 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user