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.
pull/14713/head
Jaeden Amero 2021-05-27 15:37:56 +01:00
parent 9135966efe
commit c867a3d151
1 changed files with 27 additions and 0 deletions

27
.lgtm.yml Normal file
View File

@ -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