Add quality report capability.

This commit is contained in:
Ben Patterson
2014-09-15 13:46:00 -04:00
committed by benrobot
parent a90ba504f7
commit 5524e0bdee
3 changed files with 17 additions and 2 deletions

15
scripts/post_quality_build.sh Executable file
View 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

View File

@@ -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']

View File

@@ -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: