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:
Patrick Fallberg
2017-10-29 21:48:39 +01:00
committed by tekka
parent e6cef8ba63
commit 9b630f7d46
5 changed files with 24 additions and 10 deletions
+1
View File
@@ -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 \
+6 -2
View File
@@ -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" "$@")"