Redmine 4.1.1
This commit is contained in:
parent
33e7b881a5
commit
3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions
|
@ -1,5 +1,5 @@
|
|||
# Redmine - project management software
|
||||
# Copyright (C) 2006-2017 Jean-Philippe Lang
|
||||
# Copyright (C) 2006-2019 Jean-Philippe Lang
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
|
@ -137,7 +137,12 @@ DESC
|
|||
abort "Plugin #{name} was not found."
|
||||
end
|
||||
|
||||
Rake::Task["db:schema:dump"].invoke
|
||||
case ActiveRecord::Base.schema_format
|
||||
when :ruby
|
||||
Rake::Task["db:schema:dump"].invoke
|
||||
when :sql
|
||||
Rake::Task["db:structure:dump"].invoke
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Copies plugins assets into the public directory.'
|
||||
|
@ -156,35 +161,38 @@ DESC
|
|||
Rake::Task["redmine:plugins:test:units"].invoke
|
||||
Rake::Task["redmine:plugins:test:functionals"].invoke
|
||||
Rake::Task["redmine:plugins:test:integration"].invoke
|
||||
Rake::Task["redmine:plugins:test:system"].invoke
|
||||
end
|
||||
|
||||
namespace :test do
|
||||
desc 'Runs the plugins unit tests.'
|
||||
Rake::TestTask.new :units => "db:test:prepare" do |t|
|
||||
t.libs << "test"
|
||||
t.verbose = true
|
||||
t.pattern = "plugins/#{ENV['NAME'] || '*'}/test/unit/**/*_test.rb"
|
||||
task :units => "db:test:prepare" do |t|
|
||||
$: << "test"
|
||||
Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/unit/**/*_test.rb"]
|
||||
end
|
||||
|
||||
desc 'Runs the plugins functional tests.'
|
||||
Rake::TestTask.new :functionals => "db:test:prepare" do |t|
|
||||
t.libs << "test"
|
||||
t.verbose = true
|
||||
t.pattern = "plugins/#{ENV['NAME'] || '*'}/test/functional/**/*_test.rb"
|
||||
task :functionals => "db:test:prepare" do |t|
|
||||
$: << "test"
|
||||
Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/functional/**/*_test.rb"]
|
||||
end
|
||||
|
||||
desc 'Runs the plugins integration tests.'
|
||||
Rake::TestTask.new :integration => "db:test:prepare" do |t|
|
||||
t.libs << "test"
|
||||
t.verbose = true
|
||||
t.pattern = "plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb"
|
||||
task :integration => "db:test:prepare" do |t|
|
||||
$: << "test"
|
||||
Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb"]
|
||||
end
|
||||
|
||||
desc 'Runs the plugins system tests.'
|
||||
task :system => "db:test:prepare" do |t|
|
||||
$: << "test"
|
||||
Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/system/**/*_test.rb"]
|
||||
end
|
||||
|
||||
desc 'Runs the plugins ui tests.'
|
||||
Rake::TestTask.new :ui => "db:test:prepare" do |t|
|
||||
t.libs << "test"
|
||||
t.verbose = true
|
||||
t.pattern = "plugins/#{ENV['NAME'] || '*'}/test/ui/**/*_test.rb"
|
||||
task :ui => "db:test:prepare" do |t|
|
||||
$: << "test"
|
||||
Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/ui/**/*_test.rb"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue