qt5base-lts/.lgtm.yml
Dimitrios Apostolou 273be0b9e6 Skip LGTM analysis for the bootstrap library and tools
This is because the same code is built for the bootstrap library with
non-standard options like disabled threads, which causes false alerts.
So we build the bootstrap tools in the "configure" step.

Additionally we update the configure flags to only the ones that
matter for the CMake build, after the latest configure script updates.

Change-Id: Id4f90db2a16904f6665f3994f23a9f2a974aefc6
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-07-16 01:04:34 +02:00

34 lines
1.0 KiB
YAML

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
# Pre-analysis step.
configure:
command:
- "./configure -cmake -opensource -confirm-license -debug -no-pch \
\ -nomake tests -nomake examples -no-harfbuzz \
\ -system-pcre -system-zlib -system-freetype -system-libpng \
\ -system-libjpeg -system-sqlite"
# We skip analyzing the bootstrap library, since the same code is
# built with non-standard flags and false-positives are flagged.
- ninja bootstrap_tools
# Actual analysis.
index:
build_command:
- ninja