1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #2506 from authmillenon/travis/enh/i2505

travis: let all static tests run and aggregate result
This commit is contained in:
Martine Lenders 2015-03-01 20:42:50 +01:00
commit c284a76c67

View File

@ -9,39 +9,66 @@
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
make -s -C ./examples/default info-concurrency
git rebase riot/master || git rebase --abort
if [ "$BUILDTEST_MCU_GROUP" == "static-tests" ]
then
RESULT=0
./dist/tools/whitespacecheck/check.sh master || exit
make -s -C ./examples/default info-concurrency
git rebase riot/master || git rebase --abort
RESULT=$(set_result $? $RESULT)
./dist/tools/licenses/check.sh master --diff-filter=MR --error-exitcode=0 || exit
./dist/tools/licenses/check.sh master --diff-filter=AC || exit
./dist/tools/whitespacecheck/check.sh master
RESULT=$(set_result $? $RESULT)
./dist/tools/doccheck/check.sh master || exit
./dist/tools/licenses/check.sh master --diff-filter=MR --error-exitcode=0
RESULT=$(set_result $? $RESULT)
./dist/tools/externc/check.sh master || exit
./dist/tools/licenses/check.sh master --diff-filter=AC
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 || exit
./dist/tools/cppcheck/check.sh master --diff-filter=AC || exit
./dist/tools/pr_check/pr_check.sh riot/master
exit 0
fi
if [ "$BUILDTEST_MCU_GROUP" == "x86" ]
then
./dist/tools/doccheck/check.sh master
RESULT=$(set_result $? $RESULT)
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
./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 riot/master
RESULT=$(set_result $? $RESULT)
exit $RESULT
fi
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