Merge pull request #1273 from dod-ccpo/fix-ci

Do not catch errors in CI.
This commit is contained in:
dandds 2019-12-20 15:11:46 -05:00 committed by GitHub
commit 2497823e2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,28 +26,16 @@ fi
## Main ## Main
if [ "${RUN_PYTHON_TESTS}" = "true" ]; then if [ "${RUN_PYTHON_TESTS}" = "true" ]; then
python_test_status=0
set +e
output_divider "Lint Python files" output_divider "Lint Python files"
run_python_lint "${PYTHON_FILES}" run_python_lint "${PYTHON_FILES}"
((python_test_status+=$?))
output_divider "Perform static analysis on Python files" output_divider "Perform static analysis on Python files"
run_python_static_analysis "${PYTHON_FILES}" run_python_static_analysis "${PYTHON_FILES}"
((python_test_status+=$?))
output_divider "Perform type checking on Python files" output_divider "Perform type checking on Python files"
run_python_typecheck run_python_typecheck
((python_test_status+=$?))
output_divider "Run Python unit test suite" output_divider "Run Python unit test suite"
run_python_unit_tests "${PYTHON_FILES}" run_python_unit_tests "${PYTHON_FILES}"
((python_test_status+=$?))
if [ "${python_test_status}" != "0" ]; then
warning "Failed to pass one or more Python checks"
exit ${python_test_status}
fi
set -e
fi fi
if [ "${RUN_JS_TESTS}" = "true" ]; then if [ "${RUN_JS_TESTS}" = "true" ]; then