Skip to content

Commit

Permalink
Run cppcheck(1) on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mptre committed Jul 18, 2017
1 parent ce4e1b9 commit 1560686
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ matrix:
- os: osx
compiler: clang
env: BUILD_TYPE=default CFLAGS=-fsanitize=address
- os: linux
env: BUILD_TYPE=cppcheck
- os: osx
compiler: clang
env: BUILD_TYPE=mandoc
install:
- |
if [ $BUILD_TYPE = cppcheck ]; then
sudo apt-get -qq update
sudo apt-get install -y cppcheck
fi
- |
if [ $BUILD_TYPE = mandoc ]; then
brew install mandoc
Expand All @@ -32,6 +38,10 @@ script:
make || exit 1
make distcheck || (find . -name test-suite.log | xargs -t cat; exit 1)
fi
- |
if [ $BUILD_TYPE = cppcheck ]; then
git ls-files | grep '\.c$' | cppcheck --quiet --error-exitcode=1 --file-list=-
fi
- |
if [ $BUILD_TYPE = mandoc ]; then
mandoc -Tlint pick.1
Expand Down

0 comments on commit 1560686

Please sign in to comment.