From 1363084028722171f374e52b6f66f9736470074f Mon Sep 17 00:00:00 2001 From: Dimitrios Apostolou Date: Wed, 10 Jun 2020 22:26:39 +0200 Subject: 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 --- .lgtm.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .lgtm.yml diff --git a/.lgtm.yml b/.lgtm.yml new file mode 100644 index 0000000000..3a399d4862 --- /dev/null +++ b/.lgtm.yml @@ -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" -- cgit v1.2.3