Skip to content

Commit

Permalink
Add cppclean as static analysis job for Travis-CI (#43)
Browse files Browse the repository at this point in the history
close #18
  • Loading branch information
ihhub committed Sep 9, 2019
1 parent c05cde8 commit 0fa4eae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ matrix:
- brew install gettext
- export PATH="/usr/local/opt/gettext/bin:$PATH"
- export WITH_SDL2="ON"
- os: linux
name: "Static analysis"
script:
- export EXCLUDE_PATTERN_1=" not found in expected header ";
- export EXCLUDE_PATTERN_2=" does not need to be \#included; use a forward declaration instead";
- export EXCLUDE_PATTERN_3=" not found in any directly \#included header";
- git clone https://github.com/myint/cppclean;
- ./cppclean/cppclean src | grep -v "$EXCLUDE_PATTERN_1" | grep -v "$EXCLUDE_PATTERN_2" | grep -v "$EXCLUDE_PATTERN_3";

script:
- |
Expand Down

0 comments on commit 0fa4eae

Please sign in to comment.