Commit 4ee16f16 by Sarina Canelake

Add diff-quality rake task (`rake quality`)

parent 4cd99c19
......@@ -77,6 +77,9 @@ rake pylint > pylint.log || cat pylint.log
# Generate coverage reports
rake coverage
# Generate quality reports
rake quality
rake autodeploy_properties
github_status state:success "passed"
......@@ -43,3 +43,17 @@ end
end
task :pep8 => :"pep8:#{system}"
end
dquality_dir = File.join(REPORT_DIR, "diff_quality")
directory dquality_dir
desc "Build the html diff quality reports, and print the reports to the console."
task :quality => dquality_dir do
# Generage diff-quality html report for pep8, and print to console
sh("diff-quality --violations=pep8 --html-report #{dquality_dir}/diff_quality_pep8.html")
sh("diff-quality --violations=pep8")
# Generage diff-quality html report for pylint, and print to console
sh("diff-quality --violations=pylint --html-report #{dquality_dir}/diff_quality_pylint.html")
sh("diff-quality --violations=pylint")
end
\ No newline at end of file
......@@ -161,4 +161,4 @@ task :coverage => :report_dirs do
if not found_coverage_info
puts "No coverage info found. Run `rake test` before running `rake coverage`."
end
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment