Accept option for PII checker report dir. Add PII check to CI quality check.

Add tests for run_pii_check paver command.
This commit is contained in:
Julia Eskew
2019-02-19 13:19:14 -05:00
parent 7db7f9cc96
commit 060d3b8e85
4 changed files with 88 additions and 7 deletions

View File

@@ -198,7 +198,7 @@ pipeline {
// Publish Quality report
publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: true,
reportDir: 'reports/metrics/',
reportFiles: 'pylint/*view*/,pep8/*view*/,python_complexity/*view*/,xsscommitlint/*view*/,xsslint/*view*/,eslint/*view*/',
reportFiles: 'pylint/*view*/,pep8/*view*/,python_complexity/*view*/,xsscommitlint/*view*/,xsslint/*view*/,eslint/*view*/,pii/*view*/',
reportName: 'Quality Report', reportTitles: ''])
} finally {
if (env.ghprbPullId != null) {

View File

@@ -137,6 +137,8 @@ case "$TEST_SUITE" in
run_paver_quality run_xsslint -t $XSSLINT_THRESHOLDS || { EXIT=1; }
echo "Running safe commit linter report."
run_paver_quality run_xsscommitlint || { EXIT=1; }
echo "Running PII checker on all Django models..."
run_paver_quality run_pii_check || { EXIT=1; }
;;
esac