forked from github/server
break up the cppcheck tests, they time out on travis
This commit is contained in:
parent
62130ca44b
commit
55479c960c
|
@ -16,11 +16,23 @@ cd tests
|
|||
./run-turn.sh
|
||||
}
|
||||
|
||||
cppcheck_tests() {
|
||||
cppcheck --version
|
||||
DIRS="util kernel modules races attributes triggers items tools spells"
|
||||
IGNORE=""
|
||||
for DIR in $DIRS ; do
|
||||
IGNORE="$IGNORE -i src/$DIR"
|
||||
echo "cppcheck src/$DIR"
|
||||
cppcheck --quiet -Isrc -Iclibs -Istorage -IcJSON --error-exitcode=1 "src/$DIR"
|
||||
done
|
||||
echo "cppcheck src"
|
||||
cppcheck --quiet -Isrc -Iclibs -Istorage -IcJSON --error-exitcode=1 $IGNORE src
|
||||
}
|
||||
|
||||
set -e
|
||||
[ -z $BUILD ] && BUILD=Debug ; export BUILD
|
||||
s/cmake-init
|
||||
cppcheck --version
|
||||
cppcheck --quiet -Isrc -Iclibs -Istorage -IcJSON --error-exitcode=1 src
|
||||
cppcheck_tests
|
||||
s/build
|
||||
cd process
|
||||
make
|
||||
|
|
Loading…
Reference in New Issue