summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-11-29 11:24:00 +0100
committerZenWalker <[email protected]>2019-12-06 12:29:59 +0100
commitebe5a56b9c1c9767b5247ef1a448ecfd3d1ce7b9 (patch)
tree079f14edfe9ec89ad9fa6895d6e6370b5567405d /.travis.yml
parentee3d6833f19dcbff05c71c847050d3e7c714fd58 (diff)
downloadlibmateweather-ebe5a56b9c1c9767b5247ef1a448ecfd3d1ce7b9.tar.bz2
libmateweather-ebe5a56b9c1c9767b5247ef1a448ecfd3d1ce7b9.tar.xz
Travis CI: enable clang analyzer in the logs
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml35
1 files changed, 34 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 34931b2..04c81ff 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
@@ -38,6 +38,7 @@ env:
requires:
archlinux:
# Useful URL: https://git.archlinux.org/svntogit/community.git/tree/libmateweather
+ - clang
- gcc
- git
- gtk3
@@ -50,6 +51,9 @@ requires:
# Useful URL: https://github.com/mate-desktop/debian-packages
# Useful URL: https://salsa.debian.org/debian-mate-team/libmateweather
- autopoint
+ - clang
+ - clang-tools
+ - gcc
- git
- gtk-doc-tools
- libglib2.0-dev
@@ -63,6 +67,8 @@ requires:
fedora:
# Useful URL: https://src.fedoraproject.org/cgit/rpms/libmateweather.git
+ - clang
+ - clang-analyzer
- gcc
- git
- gtk3-devel
@@ -74,6 +80,8 @@ requires:
ubuntu:
- autopoint
+ - clang
+ - clang-tools
- git
- gtk-doc-tools
- libglib2.0-dev
@@ -88,6 +96,22 @@ requires:
variables:
- CFLAGS="-Wall -Werror=format-security"
+ - '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"'
before_scripts:
- if [ ${DISTRO_NAME} == "debian" ];then
@@ -95,6 +119,15 @@ before_scripts:
- bash ./debian.sh
- fi
+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