summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-12-06 01:47:44 +0100
committerraveit65 <[email protected]>2019-12-08 17:59:44 +0100
commitda737b48adc26bad2889fdfe4947aada0d57afd2 (patch)
treee6967470992daee2f38f665c8c9f94846554d296 /.travis.yml
parente652b67fe593a6fd4f4c6510ca3c272d3850a6ab (diff)
downloadlibmatemixer-da737b48adc26bad2889fdfe4947aada0d57afd2.tar.bz2
libmatemixer-da737b48adc26bad2889fdfe4947aada0d57afd2.tar.xz
Travis CI: enable clang analyzer in the logs
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml31
1 files changed, 30 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index d576976..c508546 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -39,6 +39,7 @@ requires:
archlinux:
# Useful URL: https://git.archlinux.org/svntogit/community.git/tree/libmatemixer
- autoconf-archive
+ - clang
- gcc
- git
- glib2
@@ -52,6 +53,9 @@ requires:
# Useful URL: https://salsa.debian.org/debian-mate-team/libmatemixer
- autoconf-archive
- autopoint
+ - clang
+ - clang-tools
+ - gcc
- git
- libasound2-dev
- libglib2.0-dev
@@ -63,6 +67,8 @@ requires:
# Useful URL: https://src.fedoraproject.org/cgit/rpms/libmatemixer.git
- alsa-lib-devel
- autoconf-archive
+ - clang
+ - clang-analyzer
- gcc
- git
- make
@@ -73,6 +79,8 @@ requires:
ubuntu:
- autoconf-archive
- autopoint
+ - clang
+ - clang-tools
- git
- libasound2-dev
- libglib2.0-dev
@@ -82,10 +90,31 @@ requires:
variables:
- CFLAGS="-Wall -Werror=format-security -Wredundant-decls"
+ - '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 --enable-compile-warnings=maximum
- - make
+ - scan-build $CHECKERS ./configure --enable-compile-warnings=maximum
+ - 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
before_scripts:
# Debian - patch intltool-update