Add Jenkins support for Safe Templates Linter

This commit is contained in:
Robert Raposa
2016-04-18 19:30:37 -04:00
parent 28b0d993cc
commit ec442789c0
4 changed files with 111 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ set -e
# Violations thresholds for failing the build
export PYLINT_THRESHOLD=4175
export JSHINT_THRESHOLD=9080
export SAFELINT_THRESHOLD=2550
doCheckVars() {
if [ -n "$CIRCLECI" ] ; then

View File

@@ -84,7 +84,10 @@ case "$TEST_SUITE" in
paver run_jshint -l $JSHINT_THRESHOLD > jshint.log || { cat jshint.log; EXIT=1; }
echo "Running code complexity report (python)."
paver run_complexity > reports/code_complexity.log || echo "Unable to calculate code complexity. Ignoring error."
echo "Running safe template linter report."
paver run_safelint -l $SAFELINT_THRESHOLD > safelint.log || { cat safelint.log; EXIT=1; }
# Run quality task. Pass in the 'fail-under' percentage to diff-quality
echo "Running diff quality."
paver run_quality -p 100 || EXIT=1
# Need to create an empty test result so the post-build