Pipeline improvements (#964)
* Fix bug with toll-gate validation against master * Change cppcheck to not attempt to validate headers directly and to run on the entire codebase in the pipeline. * Support running Arduino test and examples build in parallel
This commit is contained in:
@@ -5,6 +5,7 @@ OPTIONS="--quiet \
|
||||
--force \
|
||||
--enable=style,information \
|
||||
-DCPPCHECK \
|
||||
--language=c++ \
|
||||
--library=${LIBRARY:-avr} \
|
||||
--platform="${TOOLCONFIG}"/${PLATFORM:-avr.xml} \
|
||||
--includes-file="${TOOLCONFIG}"/includes.cfg \
|
||||
|
||||
@@ -7,11 +7,15 @@
|
||||
# --cached or <no arg> for changed
|
||||
if [[ $# = 0 ]]; then
|
||||
for file in $(modifiedSourceFiles); do
|
||||
runBundle $file
|
||||
if [[ $file != *.h ]]; then
|
||||
runBundle $file
|
||||
fi
|
||||
done
|
||||
elif [[ $1 = '--cached' ]]; then
|
||||
for file in $(stagedSourceFiles); do
|
||||
runBundle $file
|
||||
if [[ $file != *.h ]]; then
|
||||
runBundle $file
|
||||
fi
|
||||
done
|
||||
else
|
||||
eval "set -- $(git rev-parse --sq --prefix "$GIT_PREFIX" "$@")"
|
||||
|
||||
Reference in New Issue
Block a user