Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis: continue static tests on error #4948

Merged
merged 1 commit into from
Mar 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 5 additions & 23 deletions dist/tools/travis-scripts/build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,39 @@
# directory for more details.
#

set -e

set_result() {
NEW_RESULT=$1
LAST_RESULT=$2

if [ $LAST_RESULT -ne 0 ] && [ $NEW_RESULT -eq 0 ]
then
NEW_RESULT=$LAST_RESULT
fi

echo $NEW_RESULT
}

if [[ $BUILDTEST_MCU_GROUP ]]
then

if [ "$BUILDTEST_MCU_GROUP" == "static-tests" ]
then
RESULT=0

trap "RESULT=1" ERR

git rebase master || git rebase --abort
RESULT=$(set_result $? $RESULT)
if [ $RESULT -ne 0 ]; then
exit $RESULT
fi

./dist/tools/whitespacecheck/check.sh master
RESULT=$(set_result $? $RESULT)

./dist/tools/licenses/check.sh master --diff-filter=MR --error-exitcode=0
RESULT=$(set_result $? $RESULT)

./dist/tools/licenses/check.sh master --diff-filter=AC
RESULT=$(set_result $? $RESULT)

./dist/tools/doccheck/check.sh master
RESULT=$(set_result $? $RESULT)

./dist/tools/externc/check.sh master
RESULT=$(set_result $? $RESULT)

# TODO:
# Remove all but `master` parameters to cppcheck (and remove second
# invocation) once all warnings of cppcheck have been taken care of
# in master.
./dist/tools/cppcheck/check.sh master --diff-filter=MR --error-exitcode=0
RESULT=$(set_result $? $RESULT)

./dist/tools/cppcheck/check.sh master --diff-filter=AC
RESULT=$(set_result $? $RESULT)

./dist/tools/pr_check/pr_check.sh master
RESULT=$(set_result $? $RESULT)

exit $RESULT
fi
Expand Down