Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions jenkins/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
14 changes: 14 additions & 0 deletions rakelib/quality.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion rakelib/tests.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion requirements/edx/github.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
# Our libraries:
-e git+https://github.com/edx/XBlock.git@b697bebd45deebd0f868613fab6722a0460ca0c1#egg=XBlock
-e git+https://github.com/edx/codejail.git@c08967fb44d1bcdb259d3ec58812e3ac592539c2#egg=codejail
-e git+https://github.com/edx/diff-cover.git@v0.1.3#egg=diff_cover
-e git+https://github.com/edx/diff-cover.git@v0.2.0#egg=diff_cover