diff --git a/core-sdk.pro b/core-sdk.pro index 264bf3d..2bc1ef2 100644 --- a/core-sdk.pro +++ b/core-sdk.pro @@ -7,4 +7,7 @@ SUBDIRS += \ OTHER_FILES += \ - .gitlab-ci.yml + .gitlab-ci.yml \ + scripts/* \ + doc/Doxy* \ + doc/pages/* \ diff --git a/scripts/codecoverage.sh b/scripts/codecoverage.sh index 5da4915..80d533e 100755 --- a/scripts/codecoverage.sh +++ b/scripts/codecoverage.sh @@ -3,7 +3,7 @@ # @see https://intoli.com/blog/exit-on-errors-in-bash-scripts/ set -e -trap 'LASTRES=$?; LAST=$BASH_COMMAND; if [[ LASTRES -ne 0 ]]; then fail "Command: \"$LAST\" exited with exit code: $LASTRES"; elif [ "$FAIL" -eq "1" ]; then fail finished with error; else pass "finished";fi' EXIT +trap 'LASTRES=$?; LAST=$BASH_COMMAND; if [[ LASTRES -ne 0 ]]; then fail "Command: \"$LAST\" exited with exit code: $LASTRES"; elif [ "$FAIL" -eq "1" ]; then fail finished with error; exit 1; else pass "finished";fi' EXIT SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIRNAME="${SRCDIR##*/}" diff --git a/scripts/cppcheck.sh b/scripts/cppcheck.sh index 78fea02..b373266 100755 --- a/scripts/cppcheck.sh +++ b/scripts/cppcheck.sh @@ -3,17 +3,18 @@ # @see https://intoli.com/blog/exit-on-errors-in-bash-scripts/ set -e -trap 'LASTRES=$?; LAST=$BASH_COMMAND; if [[ LASTRES -ne 0 ]]; then fail "Command: \"$LAST\" exited with exit code: $LASTRES"; elif [ "$FAIL" -eq "1" ]; then fail finished with error; else pass "finished";fi' EXIT +trap 'LASTRES=$?; LAST=$BASH_COMMAND; if [[ LASTRES -ne 0 ]]; then fail "Command: \"$LAST\" exited with exit code: $LASTRES"; elif [ "$FAIL" -eq "1" ]; then fail finished with error; exit 1; else pass "finished";fi' EXIT SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIRNAME="${SRCDIR##*/}" exclude_dir=build check_dir=$SRCDIR/../src +suppress="--suppress=missingInclude --suppress=unusedFunction" FAIL=0 main() { - { ERROR="$( { cppcheck $check_dir --suppress=missingIncludeSystem --suppress=unusedFunction --enable=all -i $exclude_dir; } 2>&1 1>&3 3>&- )"; } 3>&1; + { ERROR="$( { cppcheck $check_dir $suppress --enable=all -i $exclude_dir; } 2>&1 1>&3 3>&- )"; } 3>&1; if [ ! -z "$ERROR" ]; then echo "----------------------------------" diff --git a/scripts/doc.sh b/scripts/doc.sh index c7d6a6f..bab8d2a 100755 --- a/scripts/doc.sh +++ b/scripts/doc.sh @@ -3,7 +3,7 @@ # @see https://intoli.com/blog/exit-on-errors-in-bash-scripts/ set -e -trap 'LASTRES=$?; LAST=$BASH_COMMAND; if [[ LASTRES -ne 0 ]]; then fail "Command: \"$LAST\" exited with exit code: $LASTRES"; elif [ "$FAIL" -eq "1" ]; then fail finished with error; else pass "finished";fi' EXIT +trap 'LASTRES=$?; LAST=$BASH_COMMAND; if [[ LASTRES -ne 0 ]]; then fail "Command: \"$LAST\" exited with exit code: $LASTRES"; elif [ "$FAIL" -eq "1" ]; then fail finished with error; exit 1; else pass "finished";fi' EXIT CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIR_NAME="${CURRENT_DIR##*/}"