Skip to content

Commit

Permalink
Travis CI: Remove checks by ancient cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmai committed May 26, 2023
1 parent 8412d65 commit de736cc
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .travis.yml
Expand Up @@ -17,12 +17,6 @@ jobs:
- NO_CLONE_LIBATOMIC_OPS=true
- env:
- MAKEFILE_TARGETS="dist"
- env:
- CPPCHECK_ENABLE="--enable=unusedFunction -D GC_BUILTIN_ATOMIC extra/gc.c"
- CPPCHECK_OUT_FILTER="Z"
- NO_CLONE_LIBATOMIC_OPS=true
- env:
- CPPCHECK_ENABLE="-j4 --enable=information,performance,portability,style,warning -I libatomic_ops/src extra/AmigaOS.c extra/MacOS.c extra/msvc_dbg.c extra/real_malloc.c extra/symbian.cpp *.c tools/*.c"
- compiler: gcc
env:
- CONF_OPTIONS="--enable-gc-assertions --enable-cplusplus --enable-static"
Expand Down Expand Up @@ -393,12 +387,6 @@ jobs:
- NO_CLONE_LIBATOMIC_OPS=true

before_install:
- if [[ "$CPPCHECK_ENABLE" != "" ]]; then
CPPCHECK_VER=1.85;
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 [[ "$AUTOMAKE_VER" != "" || "$LIBTOOL_VER" != ""
|| "$M4_VER" != "" ]]; then
GNUTOOLS_ROOT=`pwd`/../gnu-tools;
Expand Down Expand Up @@ -440,13 +428,13 @@ install:
- if [[ "$REPORT_COVERAGE" == true ]]; then gem install coveralls-lcov; fi

script:
- if [[ "$CSA_CHECK" != true && "$CPPCHECK_ENABLE" == ""
- if [[ "$CSA_CHECK" != true
&& "$MAKEFILE_NAME" != "Makefile.direct"
&& "$COVERITY_SCAN_BRANCH" != 1 ]]; then
CFLAGS="$CONF_CFLAGS" ./configure $CONF_OPTIONS --enable-werror &&
cat include/config.h;
fi
- if [[ "$CSA_CHECK" != true && "$CPPCHECK_ENABLE" == ""
- if [[ "$CSA_CHECK" != true
&& "$COVERITY_SCAN_BRANCH" != 1 ]]; then
make -j -f $MAKEFILE_NAME $MAKEFILE_TARGETS CFLAGS_EXTRA="$CFLAGS_EXTRA"
LDFLAGS="$LDFLAGS";
Expand All @@ -465,13 +453,6 @@ script:
extra/msvc_dbg.c extra/pcr_interface.c extra/real_malloc.c
tests/*.c tests/*.cc tools/*.c;
fi
- if [[ "$CPPCHECK_ENABLE" != "" ]]; then
if [[ "$CPPCHECK_OUT_FILTER" == "" ]]; then CPPCHECK_OUT_FILTER="c "; fi;
set -o pipefail; ~/cppcheck/cppcheck --force --error-exitcode=2
-U GC_API -D CPPCHECK -I include $CPPCHECK_ENABLE
*.cc cord/*.c cord/tests/*.c tests/*.c tests/*.cc |
grep --line-buffered "$CPPCHECK_OUT_FILTER";
fi
- if [[ "$TESTS_CUSTOM_RUN" == true ]]; then
ASAN_OPTIONS="detect_leaks=1" UBSAN_OPTIONS="halt_on_error=1"
make check-without-test-driver;
Expand Down

0 comments on commit de736cc

Please sign in to comment.