Skip to content

Commit

Permalink
lgtm: Add initial LGTM configuration file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Patater committed May 27, 2021
1 parent 9135966 commit c867a3d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .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

0 comments on commit c867a3d

Please sign in to comment.