From 5524e0bdee534e4644cf39fe20b1544b46c2f1ad Mon Sep 17 00:00:00 2001 From: Ben Patterson Date: Mon, 15 Sep 2014 13:46:00 -0400 Subject: [PATCH] Add quality report capability. --- scripts/post_quality_build.sh | 15 +++++++++++++++ scripts/post_worker.py | 2 +- tddium.yml | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100755 scripts/post_quality_build.sh diff --git a/scripts/post_quality_build.sh b/scripts/post_quality_build.sh new file mode 100755 index 0000000000..0492ef48d6 --- /dev/null +++ b/scripts/post_quality_build.sh @@ -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 diff --git a/scripts/post_worker.py b/scripts/post_worker.py index 3230be6017..7ffc7e0f24 100644 --- a/scripts/post_worker.py +++ b/scripts/post_worker.py @@ -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'] \ No newline at end of file +print 'TDDIUM_SESSION_ID:', os.environ['TDDIUM_SESSION_ID'] diff --git a/tddium.yml b/tddium.yml index 68d01a761b..4c97d149b4 100644 --- a/tddium.yml +++ b/tddium.yml @@ -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: