From 103dbe72c3d5a71d5eb71bd96b89c02ac3a37e6e Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 26 Mar 2023 15:55:54 +0300 Subject: Travis CI: Use cppcheck from Ubuntu Jammy --- .travis.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 99dcf7f..3e1d19e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,10 +30,20 @@ jobs: - MAKEFILE_TARGET=all - REPORT_COVERAGE=true - CFLAGS_EXTRA="-march=native -D DEBUG_RUN_ONE_TEST -D VERBOSE_STACK" - - env: - - CPPCHECK_ENABLE="-j16 -q --enable=information,performance,portability,style,warning" + - addons: + apt: + packages: + - cppcheck + dist: jammy + env: + - CPPCHECK_ENABLE="-j16 -q --enable=information,performance,portability,style,warning --suppress=missingIncludeSystem --suppress=unmatchedSuppression" - MAKEFILE_TARGET=all - - env: + - addons: + apt: + packages: + - cppcheck + dist: jammy + env: - CPPCHECK_ENABLE="-q --enable=unusedFunction -D AO_TEST_EMULATION" - MAKEFILE_TARGET=all - compiler: clang @@ -638,12 +648,6 @@ jobs: - MAKEFILE_TARGET=distcheck before_install: -- if [[ "$CPPCHECK_ENABLE" != "" ]]; then - CPPCHECK_VER=main; - git clone --depth=3 https://github.com/danmar/cppcheck.git - ~/cppcheck -b $CPPCHECK_VER; - make --directory ~/cppcheck -j8 CXXFLAGS="-O3 -march=native -D NDEBUG"; - fi - if [[ "$CROSS_GCC_VER" != "" ]]; then if [[ "$NOLIBC_DELIM" == "" ]]; then NOLIBC_DELIM=-; fi; BUILD_ARCH=x86_64; @@ -701,7 +705,7 @@ script: $CFLAGS_EXTRA tests/*.c src/*.c; fi - if [[ "$CPPCHECK_ENABLE" != "" ]]; then - ~/cppcheck/cppcheck -f --error-exitcode=2 -U AO_API -D CPPCHECK -I src + cppcheck -f --error-exitcode=2 -U AO_API -D CPPCHECK -I src $CPPCHECK_ENABLE src/*.c tests/test_malloc.c tests/test_stack.c; fi - if [[ "$TESTS_CUSTOM_RUN" == true ]]; then -- cgit v1.2.1