Skip to content

Commit

Permalink
Don't use cppcheck's --std=c++03 on Travis CI
Browse files Browse the repository at this point in the history
Since Travis CI's cppcheck version (1.52) does not support the
`--std=c++03` option, which was adding in 1.56.
  • Loading branch information
pcolby committed Jul 13, 2016
1 parent 493efad commit b0188e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ before_script:
- mkdir -p $TRAVIS_BUILD_DIR-clang-scan

script:
- > # When cppcheck 1.58+ is available, add: --include=/usr/include/pcp/pmapi.h
- >
# When cppcheck 1.56+ is available, add: --std=c++03
# When cppcheck 1.58+ is available, add: --include=/usr/include/pcp/pmapi.h
cppcheck --enable=all --error-exitcode=1 -I include --quiet .
--std=posix --std=c++03 --std=c++11
--std=posix --std=c++11 .
--suppress=noExplicitConstructor:include/pcp-cpp/exception.hpp
- pushd $TRAVIS_BUILD_DIR-clang-scan
- scan-build --status-bugs cmake -DCMAKE_BUILD_TYPE=DEBUG $TRAVIS_BUILD_DIR
Expand Down

0 comments on commit b0188e2

Please sign in to comment.