Skip to content

Commit

Permalink
Merge pull request #9286 from alekla01/alekla01-include_check-patch-1
Browse files Browse the repository at this point in the history
travis: Add include_check job
  • Loading branch information
0xc0170 authored Jan 22, 2019
2 parents 1568be0 + fc41ea9 commit cf75dc4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,15 @@ matrix:
- ! git grep -q --ignore-case "gnu general public";
- ! git grep -q --ignore-case "gnu library general public";

- env:
- NAME=include_check
script:
- echo 'Checking that there are no '#include "mbed.h"' in code where it should not be'
- |
! git grep '^#include\s["'"']mbed.h['"'"]$' -- '*.c' '*.h' '*.cpp' '*.hpp' \
':!*platform_mbed.h' ':!*TESTS/*' ':!TEST_APPS/' ':!UNITTESTS/' \
':!*tests/*' ':!*targets/*' ':!*TARGET_*' ':!*unsupported/*'
- env:
- NAME=psa-autogen
script:
Expand Down

0 comments on commit cf75dc4

Please sign in to comment.