Add Travis include mbed.h check

pull/9286/head
Aleksi Klasila 2019-01-08 10:58:22 +02:00 committed by alekla01
parent a09b5f5c6b
commit fc41ea90d2
1 changed files with 9 additions and 0 deletions

View File

@ -299,6 +299,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: