Skip to content

Commit c867a3d

Browse files
committed
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.
1 parent 9135966 commit c867a3d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.lgtm.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
path_classifiers:
2+
docs:
3+
- docs
4+
test:
5+
- "**/TESTS"
6+
- "**/UNITTESTS"
7+
tools:
8+
- tools
9+
10+
extraction:
11+
cpp:
12+
prepare:
13+
packages:
14+
- ninja-build
15+
- python-pip
16+
after_prepare:
17+
- pip install --user cmake
18+
- ls ~/.local/bin
19+
- export PATH=~/.local/bin:$PATH
20+
- cmake --version
21+
configure:
22+
command:
23+
- cmake -S . -B __build -GNinja -DBUILD_TESTING=ON -DCOVERAGE=OFF -DCMAKE_BUILD_TYPE=Debug
24+
index:
25+
build_command:
26+
- cmake --build __build
27+
- cmake --build __build --target test

0 commit comments

Comments
 (0)