summaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2020-04-13 03:24:14 +0200
committerPablo Barciela <[email protected]>2020-04-13 04:06:15 +0200
commitdeda8c3eae2b7904fef870bbb40fda2ffac6dbbc (patch)
tree5891449afa2c5c8a031e1dccff8e301acaa78954 /.build.yml
parentec749ac683867006ca5ccb20149bba8501a4a489 (diff)
downloadcaja-extensions-deda8c3eae2b7904fef870bbb40fda2ffac6dbbc.tar.bz2
caja-extensions-deda8c3eae2b7904fef870bbb40fda2ffac6dbbc.tar.xz
Travis CI: debian build: add -Wsign-compare -Wunused-parameter to CFLAGS
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.build.yml b/.build.yml
index b1afad2..e00ce58 100644
--- a/.build.yml
+++ b/.build.yml
@@ -112,6 +112,11 @@ before_scripts:
- make install
build_scripts:
+ - if [ ${DISTRO_NAME} == "debian" ];then
+ - export CFLAGS+=" -Wsign-compare -Wunused-parameter"
+ - cppcheck --enable=warning,style,performance,portability,information,missingInclude .
+ - fi
+
- ./autogen.sh
- scan-build $CHECKERS ./configure --enable-compile-warnings=maximum
- if [ $CPU_COUNT -gt 1 ]; then
@@ -119,13 +124,10 @@ build_scripts:
- else
- scan-build $CHECKERS --keep-cc -o html-report make
- fi
- - if [ ${DISTRO_NAME} == "debian" ];then
- - cppcheck --enable=warning,style,performance,portability,information,missingInclude -i'caja-1.22.0' .
- - fi
after_scripts:
- if [ ${DISTRO_NAME} == "fedora" ];then
- - cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude -i'caja-1.22.0' .
+ - cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude .
- cppcheck-htmlreport --title=${REPO_NAME} --file=cppcheck.xml --report-dir=cppcheck-htmlreport
- ./gen-index -l 20 -i https://github.com/${OWNER_NAME}/mate-icon-theme/raw/master/mate/16x16/apps/system-file-manager.png
- fi