Commit d232dff7 authored by SBassett's avatar SBassett
Browse files

More testing of trapping of exit codes into cumulative var

parent a70594d9
Pipeline #1370 passed with stage
in 49 seconds
......@@ -19,15 +19,19 @@ npm_audit_dependency_check:
for f in $file_list; do
npm_dir="$(dirname "$f")"
cd $root_dir/$npm_dir
npm install
npm install --package-lock-only
echo -e "\n "
echo -e "----- $f -----"
echo -e "\n "
set -e
TOTAL_EXIT_CODES=0
EXIT_CODE=0
audit-ci ${NPM_AUDIT_OPTIONS} || EXIT_CODE=$?
echo $EXIT_CODE
TOTAL_EXIT_CODES=$TOTAL_EXIT_CODES + $EXIT_CODE
done
if [ $TOTAL_EXIT_CODES -ge 0 ]; then
exit 1
fi
# only run on changes to package and package.lock .json
only:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment