From b18628754ad37fb67c3421ece87e9e63507de123 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Tue, 30 Apr 2019 18:12:23 +0800 Subject: [ci] Add cppcheck html report --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6f9fc984..b50ab176 100644 --- a/.travis.yml +++ b/.travis.yml @@ -111,6 +111,7 @@ requires: # Useful URL: https://src.fedoraproject.org/cgit/rpms/pluma.git - clang - clang-analyzer + - cppcheck-htmlreport - desktop-file-utils - enchant-devel - gcc @@ -184,7 +185,9 @@ build_scripts: after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then - - ./gen-index -i https://github.com/${OWNER_NAME}/mate-icon-theme/raw/master/mate/16x16/apps/accessories-text-editor.png + - 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/accessories-text-editor.png - fi - make distcheck -- cgit v1.2.1