Post complexity metric to a file for downstream collection.

This complexity metric is created by using radon (see changed files for additional
documentation links). This tool calculates cyclomatic complexity and provides a numeric grade
where a lower number is better (e.g., less complex).
This commit is contained in:
Ben Patterson
2015-07-13 08:18:25 -04:00
parent c0eaeb7efc
commit c9cf8b6306
3 changed files with 93 additions and 24 deletions

View File

@@ -85,7 +85,7 @@ case "$TEST_SUITE" in
PATH=$PATH:node_modules/.bin
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."
paver run_complexity || echo "Unable to calculate code complexity. Ignoring error."
# Need to create an empty test result so the post-build
# action doesn't fail the build.
cat > reports/quality.xml <<END