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
|
./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
|
set -e
|
||||||
[ -z $BUILD ] && BUILD=Debug ; export BUILD
|
[ -z $BUILD ] && BUILD=Debug ; export BUILD
|
||||||
s/cmake-init
|
s/cmake-init
|
||||||
cppcheck --version
|
cppcheck_tests
|
||||||
cppcheck --quiet -Isrc -Iclibs -Istorage -IcJSON --error-exitcode=1 src
|
|
||||||
s/build
|
s/build
|
||||||
cd process
|
cd process
|
||||||
make
|
make
|
||||||
|
|
Loading…
Reference in New Issue