Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ea39239c
Commit
ea39239c
authored
Jul 22, 2013
by
Sarina Canelake
Committed by
Sef Kloninger
Jul 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add diff-quality rake task (`rake quality`)
parent
9f7ffcaf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletions
+20
-1
jenkins/test.sh
+3
-0
rakelib/quality.rake
+15
-0
rakelib/tests.rake
+2
-1
No files found.
jenkins/test.sh
View file @
ea39239c
...
...
@@ -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"
rakelib/quality.rake
View file @
ea39239c
...
...
@@ -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
rakelib/tests.rake
View file @
ea39239c
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment