From b923d0e3c6cead51907e4e0426ad0612217cea88 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Thu, 24 Oct 2019 10:36:33 +0200 Subject: [PATCH] lgtm: fix the extraction process As this project uses only Makefile, without any configuration step, and due to a "non-standard" location of the source files, LGTM kept failing to find the respective Makefile and build the sources. By tricking LGTM's build system auto detection, that we use automake/configure, it correctly sets the source dir, thus the compilation, extraction & analysis steps now work in the src/ subdirectory, as expected. --- .lgtm.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .lgtm.yml diff --git a/.lgtm.yml b/.lgtm.yml new file mode 100644 index 0000000..f27137b --- /dev/null +++ b/.lgtm.yml @@ -0,0 +1,14 @@ +# vi: set ts=2 sw=2: +extraction: + cpp: + prepare: + packages: + - libelf-dev + - pkg-config + after_prepare: + # As the buildsystem detection by LGTM is performed _only_ during the + # 'configure' phase, we need to trick LGTM we use a supported build + # system (configure, meson, cmake, etc.). This way LGTM correctly detects + # that our sources are in the src/ subfolder. + - touch src/configure + - chmod +x src/configure