diff options
author | Eiichi NISHINA <github@channel-247.net> | 2017-02-12 02:10:53 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-27 13:51:05 +0200 |
commit | 62774e43564b166d6907c7abc2e3431a65bd5596 (patch) | |
tree | 504f43359d07d2a98b5a3da71dbe11e7c4e74aa5 /.ci | |
parent | 7bc37ffb22a84668bba5b2e3589c4c05ad43f7d0 (diff) | |
download | rneovim-62774e43564b166d6907c7abc2e3431a65bd5596.tar.gz rneovim-62774e43564b166d6907c7abc2e3431a65bd5596.tar.bz2 rneovim-62774e43564b166d6907c7abc2e3431a65bd5596.zip |
ci: Check that `#include "*.h"` works as a single include
Lesser form of include-what-you-use: at least guarantees that header
file did not forget to include something through some other included
file.
Activate run_single_includes_tests on CI.
Fix some IWYU violations.
References #5321
Diffstat (limited to '.ci')
-rw-r--r-- | .ci/common/test.sh | 4 | ||||
-rwxr-xr-x | .ci/run_tests.sh | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/.ci/common/test.sh b/.ci/common/test.sh index b28e46a4df..4137472385 100644 --- a/.ci/common/test.sh +++ b/.ci/common/test.sh @@ -109,6 +109,10 @@ run_oldtests() { check_core_dumps } +run_single_includes_tests() { + ${MAKE_CMD} -C "${BUILD_DIR}" check-single-includes +} + install_nvim() { ${MAKE_CMD} -C "${BUILD_DIR}" install diff --git a/.ci/run_tests.sh b/.ci/run_tests.sh index 6347ac15d4..d994db471f 100755 --- a/.ci/run_tests.sh +++ b/.ci/run_tests.sh @@ -10,6 +10,7 @@ source "${CI_DIR}/common/test.sh" check_core_dumps --delete quiet prepare_build +run_single_includes_tests build_nvim if [ "$CLANG_SANITIZER" != "TSAN" ]; then |