initial buildout of a 'xlint' test to verify legacy coursewar

This commit is contained in:
Chris Dodge
2012-11-08 16:07:17 -05:00
parent 171e932266
commit 981f5cee45
3 changed files with 77 additions and 4 deletions

View File

@@ -364,6 +364,18 @@ namespace :cms do
end
end
namespace :cms do
desc "Import course data within the given DATA_DIR variable"
task :xlint do
if ENV['DATA_DIR']
sh(django_admin(:cms, :dev, :xlint, ENV['DATA_DIR']))
else
raise "Please specify a DATA_DIR variable that point to your data directory.\n" +
"Example: \`rake cms:import DATA_DIR=../data\`"
end
end
end
desc "Build a properties file used to trigger autodeploy builds"
task :autodeploy_properties do
File.open("autodeploy.properties", "w") do |file|