Add quality report capability.
This commit is contained in:
15
scripts/post_quality_build.sh
Executable file
15
scripts/post_quality_build.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
current_path=`pwd`
|
||||
|
||||
reports_path=$current_path/reports
|
||||
|
||||
dest_path=$HOME/results/$TDDIUM_SESSION_ID/session/
|
||||
|
||||
echo "Getting Quality Reports... "
|
||||
|
||||
pep8_rpt=$reports_path/diff_quality/diff_quality_pep8.html
|
||||
pylint_rpt=$reports_path/diff_quality/diff_quality_pylint.html
|
||||
|
||||
cp -f $pep8_rpt $dest_path
|
||||
cp -f $pylint_rpt $dest_path
|
||||
|
||||
echo "Reports can be found in "$dest_path
|
||||
@@ -44,4 +44,4 @@ for (path, dirs, files) in os.walk('test_root/log'):
|
||||
print 'destination:', destpath
|
||||
shutil.copyfile(filepath, destpath)
|
||||
|
||||
print 'TDDIUM_SESSION_ID:', os.environ['TDDIUM_SESSION_ID']
|
||||
print 'TDDIUM_SESSION_ID:', os.environ['TDDIUM_SESSION_ID']
|
||||
|
||||
@@ -30,7 +30,7 @@ tddium:
|
||||
:test_pattern: 'none'
|
||||
:tests:
|
||||
- :type: custom
|
||||
:command: paver run_quality
|
||||
:command: paver run_quality && bash ./scripts/post_quality_build.sh
|
||||
:invocation: single
|
||||
:output: exit-status
|
||||
:report_files:
|
||||
|
||||
Reference in New Issue
Block a user