diff options
author | Pablo Barciela <[email protected]> | 2020-01-12 00:27:56 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2020-01-24 11:54:13 +0100 |
commit | 2956f04e696fae55178c139ab102ccd04073a0ac (patch) | |
tree | ad54ce9b5f2837fe130879f2dc75a31a39d9a139 | |
parent | b522d1d4bae4364873a622df975d200449aa1806 (diff) | |
download | python-caja-2956f04e696fae55178c139ab102ccd04073a0ac.tar.bz2 python-caja-2956f04e696fae55178c139ab102ccd04073a0ac.tar.xz |
Travis CI: enable clang analyzer in the logs
-rw-r--r-- | .travis.yml | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 97969cb..0d005a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ install: - ./docker-build --name ${DISTRO} --config .travis.yml --install script: - - ./docker-build --name ${DISTRO} --verbose --config .travis.yml --build autotools + - ./docker-build --name ${DISTRO} --verbose --config .travis.yml --build scripts deploy: - provider: script @@ -39,6 +39,7 @@ requires: archlinux: # Useful URL: https://git.archlinux.org/svntogit/community.git/tree/python-caja - caja + - clang - gcc - git - make @@ -50,6 +51,9 @@ requires: # Useful URL: https://github.com/mate-desktop/debian-packages # Useful URL: https://salsa.debian.org/debian-mate-team/python-caja - autopoint + - clang + - clang-tools + - gcc - git - gtk-doc-tools - libcaja-extension-dev @@ -63,6 +67,8 @@ requires: fedora: # Useful URL: https://src.fedoraproject.org/cgit/rpms/python-caja.git - caja-devel + - clang + - clang-analyzer - gcc - git - make @@ -73,6 +79,8 @@ requires: ubuntu: - autopoint + - clang + - clang-tools - git - gtk-doc-tools - libcaja-extension-dev @@ -86,6 +94,31 @@ requires: variables: - CFLAGS="-Wall -Werror=format-security -Wredundant-decls" - PYTHON=python3 + - 'CHECKERS=" + -enable-checker deadcode.DeadStores + -enable-checker alpha.deadcode.UnreachableCode + -enable-checker alpha.core.CastSize + -enable-checker alpha.core.CastToStruct + -enable-checker alpha.core.IdenticalExpr + -enable-checker alpha.core.SizeofPtr + -enable-checker alpha.security.ArrayBoundV2 + -enable-checker alpha.security.MallocOverflow + -enable-checker alpha.security.ReturnPtrRange + -enable-checker alpha.unix.SimpleStream + -enable-checker alpha.unix.cstring.BufferOverlap + -enable-checker alpha.unix.cstring.NotNullTerminated + -enable-checker alpha.unix.cstring.OutOfBounds + -enable-checker alpha.core.FixedAddr + -enable-checker security.insecureAPI.strcpy"' + +build_scripts: + - ./autogen.sh + - scan-build $CHECKERS ./configure + - if [ $CPU_COUNT -gt 1 ]; then + - scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT + - else + - scan-build $CHECKERS --keep-cc -o html-report make + - fi after_scripts: - make distcheck |