Skip to content

Commit

Permalink
Add Clang Static Analyser check to Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Apr 5, 2015
1 parent 367cf6d commit 83032bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ install:

before_script:
- mkdir -p $TRAVIS_BUILD_DIR-build
- mkdir -p $TRAVIS_BUILD_DIR-clang-scan

script:
- cppcheck --error-exitcode=1 --quiet .
- pushd $TRAVIS_BUILD_DIR-clang-scan
- scan-build --status-bugs cmake -DCMAKE_BUILD_TYPE=DEBUG $TRAVIS_BUILD_DIR
- scan-build --status-bugs make
- popd
- pushd $TRAVIS_BUILD_DIR-build
- cmake $TRAVIS_BUILD_DIR && make check
- if [ "$CXX" = "g++" ]; then make coverage; fi
Expand Down

0 comments on commit 83032bc

Please sign in to comment.