2015-02-06 03:36:16 +01:00
|
|
|
#!/bin/bash
|
2015-02-24 00:23:34 +01:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 Philipp Rosenkranz <philipp.rosenkranz@fu-berlin.de>
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
2015-02-06 03:36:16 +01:00
|
|
|
set -e
|
|
|
|
|
2015-02-24 00:17:28 +01:00
|
|
|
if [[ $BUILDTEST_MCU_GROUP ]]
|
|
|
|
then
|
|
|
|
if [ "$BUILDTEST_MCU_GROUP" == "static-tests" ]
|
|
|
|
then
|
|
|
|
make -s -C ./examples/default info-concurrency
|
|
|
|
git rebase riot/master || git rebase --abort
|
2015-02-06 03:36:16 +01:00
|
|
|
|
2015-02-24 00:17:28 +01:00
|
|
|
./dist/tools/whitespacecheck/check.sh master || exit
|
2015-02-06 03:36:16 +01:00
|
|
|
|
2015-02-24 00:17:28 +01:00
|
|
|
./dist/tools/licenses/check.sh master --diff-filter=MR --error-exitcode=0 || exit
|
|
|
|
./dist/tools/licenses/check.sh master --diff-filter=AC || exit
|
2015-02-06 03:36:16 +01:00
|
|
|
|
2015-02-24 00:17:28 +01:00
|
|
|
./dist/tools/doccheck/check.sh master || exit
|
2015-02-06 03:36:16 +01:00
|
|
|
|
2015-02-24 00:17:28 +01:00
|
|
|
./dist/tools/externc/check.sh master || exit
|
2015-02-06 03:36:16 +01:00
|
|
|
|
2015-02-24 00:17:28 +01:00
|
|
|
# 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 || exit
|
|
|
|
./dist/tools/cppcheck/check.sh master --diff-filter=AC || exit
|
|
|
|
./dist/tools/pr_check/pr_check.sh riot/master
|
|
|
|
exit 0
|
|
|
|
fi
|
2015-02-06 03:36:16 +01:00
|
|
|
if [ "$BUILDTEST_MCU_GROUP" == "x86" ]
|
|
|
|
then
|
|
|
|
|
|
|
|
make -C ./tests/unittests all test BOARD=native || exit
|
|
|
|
# TODO:
|
|
|
|
# Reenable once https://github.com/RIOT-OS/RIOT/issues/2300 is
|
|
|
|
# resolved:
|
|
|
|
# - make -C ./tests/unittests all test BOARD=qemu-i386 || exit
|
|
|
|
fi
|
|
|
|
./dist/tools/compile_test/compile_test.py
|
|
|
|
fi
|