env:
- CPPCHECK_ENABLE="-j16 -q --enable=information,performance,portability,style,warning"
- MAKEFILE_TARGET=all
- sudo: required
- os: linux
env:
- CPPCHECK_ENABLE="-q --enable=unusedFunction -D AO_TEST_EMULATION"
- MAKEFILE_TARGET=all
- sudo: required
- os: linux
addons:
apt:
before_install:
- if [[ "$CPPCHECK_ENABLE" != "" ]]; then
+ CPPCHECK_VER=master;
git clone --depth=3 https://github.com/danmar/cppcheck.git
- ~/cppcheck -b master;
+ ~/cppcheck -b $CPPCHECK_VER;
make --directory ~/cppcheck -j CXXFLAGS="-O3 -march=native -D NDEBUG";
fi
- if [[ "$CROSS_GCC_VER" != "" ]]; then
$CFLAGS_EXTRA tests/*.c src/*.c;
fi
- if [[ "$CPPCHECK_ENABLE" != "" ]]; then
- ~/cppcheck/cppcheck -f --error-exitcode=2 -U long -D CPPCHECK -I src
+ ~/cppcheck/cppcheck -f --error-exitcode=2 -D CPPCHECK -I src
$CPPCHECK_ENABLE tests/*.c src/*.c;
fi
- if [[ "$TESTS_CUSTOM_RUN" == true ]]; then