Merge pull request #290 from manish3kumar/integrate-sa

Integrate cppcheck with travis-ci for libexpat
This commit is contained in:
Sebastian Pipping 2019-07-24 01:18:43 +02:00 committed by GitHub
commit 3270bbab5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,8 @@ elif [[ ${MODE} = cmake-oos ]]; then
make all test make all test
make DESTDIR="${PWD}"/ROOT install make DESTDIR="${PWD}"/ROOT install
find ROOT -printf "%P\n" | sort find ROOT -printf "%P\n" | sort
elif [[ ${MODE} = cppcheck ]]; then
cppcheck --quiet --error-exitcode=1 .
else else
./qa.sh ./qa.sh
fi fi

View File

@ -22,6 +22,7 @@ env:
- MODE=cmake-oos - MODE=cmake-oos
- MODE=distcheck - MODE=distcheck
- MODE=qa-sh QA_COMPILER=clang CC=clang CXX=clang++ LD=clang++ QA_SANITIZER=address - MODE=qa-sh QA_COMPILER=clang CC=clang CXX=clang++ LD=clang++ QA_SANITIZER=address
- MODE=cppcheck
matrix: matrix:
include: include:
@ -51,6 +52,7 @@ addons:
- dos2unix - dos2unix
- lzip - lzip
- rpm - rpm
- cppcheck
script: script:
- ./.travis.sh - ./.travis.sh

View File

@ -11,3 +11,4 @@ brew "libtool"
brew "lzip" brew "lzip"
brew "m4" brew "m4"
brew "rpm" brew "rpm"
brew "cppcheck"