diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-11-08 11:57:24 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-11-08 11:57:24 +0300 |
commit | 0e900ac5f03045918716189a3198f07a9d71a9e8 (patch) | |
tree | d0acaa68493bf5daa739c1b31b4f57bf91fa36b4 | |
parent | c3aedddf120b6cdcb9e1f089e298ccc3507d0fb7 (diff) | |
download | libatomic_ops-0e900ac5f03045918716189a3198f07a9d71a9e8.tar.gz |
Travis CI: Use Ubuntu packaged cppcheck for a release branch
-rw-r--r-- | .travis.yml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index 79a648f..d9d7232 100644 --- a/.travis.yml +++ b/.travis.yml @@ -239,15 +239,21 @@ matrix: - REPORT_COVERAGE=true - CFLAGS_EXTRA="-march=native -D DEBUG_RUN_ONE_TEST -D VERBOSE" - os: linux + addons: + apt: + packages: + - cppcheck env: - CPPCHECK_ENABLE="-j16 -q --enable=information,performance,portability,style,warning" - MAKEFILE_TARGET=all - sudo: required - os: linux + addons: + apt: + packages: + - cppcheck env: - CPPCHECK_ENABLE="-q --enable=unusedFunction -D AO_TEST_EMULATION" - MAKEFILE_TARGET=all - sudo: required - os: linux addons: apt: @@ -462,11 +468,6 @@ matrix: - NOLIBC_ARCH_ABI=tilegx-linux before_install: -- if [[ "$CPPCHECK_ENABLE" != "" ]]; then - git clone --depth=3 https://github.com/danmar/cppcheck.git - ~/cppcheck -b master; - make --directory ~/cppcheck -j CXXFLAGS="-O3 -march=native -D NDEBUG"; - fi - if [[ "$CROSS_GCC_VER" != "" ]]; then BUILD_ARCH=x86_64; TAR_FOLDER_URL=https://www.kernel.org/pub/tools/crosstool/files/bin/$BUILD_ARCH/$CROSS_GCC_VER; @@ -525,7 +526,7 @@ script: $CFLAGS_EXTRA tests/*.c src/*.c; fi - if [[ "$CPPCHECK_ENABLE" != "" ]]; then - ~/cppcheck/cppcheck -f --error-exitcode=2 -U long -D CPPCHECK -I src + cppcheck -f --error-exitcode=2 -D CPPCHECK -I src $CPPCHECK_ENABLE tests/*.c src/*.c; fi - if [[ "$TESTS_CUSTOM_RUN" == true ]]; then |