Skip to content

Commit 92041fe

Browse files
authored
Run cppcheck on the code
1 parent a8e9bef commit 92041fe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ before_install:
1818
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install info install-info; fi
1919
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo pip install cpp-coveralls; fi
2020
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo pip install gcovr; fi
21+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install cppcheck; fi
2122
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export CFLAGS='-mtune=generic'; fi
2223
- curl https://s3.amazonaws.com/libhttpserver/libmicrohttpd_releases/libmicrohttpd-0.9.59.tar.gz -o libmicrohttpd-0.9.59.tar.gz
2324
- tar -xvzf libmicrohttpd-0.9.59.tar.gz
@@ -79,6 +80,7 @@ script:
7980
cat test/test-suite.log ;
8081
ls -l /usr/local/lib/ ;
8182
ls -l /usr/lib/ ;
83+
if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd ../src/; cppcheck --error-exitcode=1 .; cd ../build; fi
8284
fi
8385
after_success:
8486
- if [ "$DEBUG" = "debug" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then ../ci-report-coverage; fi

0 commit comments

Comments
 (0)