Add config file for enabling LGTM analysis

lgtm.com is already picking up qtbase's mirror repo on github, trying to
analyze it. Because it lacks build instructions, lgtm.com fails to analyze the
C++ code, and only presents flaws in the little python and javascript code
that is in the repo. With the file in this commit, it should be able to
analyze the C++ code too.

Change-Id: If558d26800e76c1b8590ed1aaf28adb6c0d6e188
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Dimitrios Apostolou 2020-06-10 22:26:39 +02:00
parent 03326a2fec
commit 1363084028
1 changed files with 23 additions and 0 deletions

23
.lgtm.yml Normal file
View File

@ -0,0 +1,23 @@
extraction:
cpp:
prepare:
packages:
- libgl-dev
- libglu-dev
- libpcre2-dev
- libz-dev
- libfreetype6-dev
- libpng-dev
- libjpeg-dev
- libsqlite3-dev
after_prepare:
- mkdir $HOME/cmake-3.17 \
\ && wget -qO- "https://cmake.org/files/v3.17/cmake-3.17.3-Linux-x86_64.tar.gz" \
\ | tar -xzf - --strip-components=1 -C $HOME/cmake-3.17
- export PATH=$HOME/cmake-3.17/bin:$PATH
configure:
command: "./configure -cmake -opensource -confirm-license -debug -no-optimize-debug \
\ -nomake tests -nomake examples -no-harfbuzz -no-iconv -system-pcre -system-zlib \
\ -system-freetype -system-libpng -system-libjpeg -system-sqlite -- -DFEATURE_system_sqlite=ON \
\ -DQT_NO_MAKE_TESTS=ON -DQT_NO_MAKE_EXAMPLES=ON"