Get the cms up to the point of rendering a template
This commit is contained in:
committed by
Matthew Mongeau
parent
3c07c2b158
commit
338547343e
20
rakefile
20
rakefile
@@ -58,7 +58,7 @@ task :pylint => REPORT_DIR do
|
||||
end
|
||||
end
|
||||
|
||||
[:lms].each do |system|
|
||||
[:lms, :cms].each do |system|
|
||||
task_name = "test_#{system}"
|
||||
report_dir = File.join(REPORT_DIR, task_name)
|
||||
directory report_dir
|
||||
@@ -70,6 +70,15 @@ end
|
||||
sh(django_admin(:lms, :test, 'test', *Dir['lms/djangoapps'].each))
|
||||
end
|
||||
task :test => task_name
|
||||
|
||||
desc <<-desc
|
||||
Start the #{system} locally with the specified environment (defaults to dev).
|
||||
Other useful environments are devplus (for dev testing with a real local database)
|
||||
desc
|
||||
task system, [:env, :options] => [] do |t, args|
|
||||
args.with_defaults(:env => 'dev', :options => '')
|
||||
sh(django_admin(system, args.env, 'runserver', args.options))
|
||||
end
|
||||
end
|
||||
|
||||
Dir["common/lib/*"].each do |lib|
|
||||
@@ -86,15 +95,6 @@ Dir["common/lib/*"].each do |lib|
|
||||
task :test => task_name
|
||||
end
|
||||
|
||||
desc <<-desc
|
||||
Start the lms locally with the specified environment (defaults to dev).
|
||||
Other useful environments are devplus (for dev testing with a real local database)
|
||||
desc
|
||||
task :lms, [:env] => [] do |t, args|
|
||||
args.with_defaults(:env => 'dev')
|
||||
sh(django_admin(:lms, args.env, 'runserver'))
|
||||
end
|
||||
|
||||
task :runserver => :lms
|
||||
|
||||
desc "Run django-admin <action> against the specified system and environment"
|
||||
|
||||
Reference in New Issue
Block a user