From c867a3d151ff994948d5eeb340aff8c8cabecfd3 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Thu, 27 May 2021 15:37:56 +0100 Subject: [PATCH] lgtm: Add initial LGTM configuration file Add a starter LGTM configuration file that tells LGTM what sort of files we have in Mbed OS, what dependencies need installing, how to configure, and how to build. We tell LGTM to build Mbed OS's unit tests for the host toolchain, as a start. We install pip so we can install pypi's version of CMake, which is newer than the current LGTM default version of 3.13.4. --- .lgtm.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .lgtm.yml diff --git a/.lgtm.yml b/.lgtm.yml new file mode 100644 index 00000000000..b3a7b64d4ba --- /dev/null +++ b/.lgtm.yml @@ -0,0 +1,27 @@ +path_classifiers: + docs: + - docs + test: + - "**/TESTS" + - "**/UNITTESTS" + tools: + - tools + +extraction: + cpp: + prepare: + packages: + - ninja-build + - python-pip + after_prepare: + - pip install --user cmake + - ls ~/.local/bin + - export PATH=~/.local/bin:$PATH + - cmake --version + configure: + command: + - cmake -S . -B __build -GNinja -DBUILD_TESTING=ON -DCOVERAGE=OFF -DCMAKE_BUILD_TYPE=Debug + index: + build_command: + - cmake --build __build + - cmake --build __build --target test