diff --git a/.lgtm.yml b/.lgtm.yml deleted file mode 100644 index bef5474..0000000 --- a/.lgtm.yml +++ /dev/null @@ -1,42 +0,0 @@ - -# Reference: https://github.com/yasio/yasio/blob/main/.lgtm.yml - -extraction: - # Define settings for C/C++ analysis - ##################################### - cpp: - configure: - command: - - NOCONFIGURE=1 ./autogen.sh - - ./configure --prefix=/usr --with-product-name="pw3270" - prepare: - packages: - - gettext - - git - - make - - autotools-dev - - autoconf - - automake - - pkg-config - - gettext - - libssl-dev - - libcurl4-openssl-dev - - libgtk-3-dev - - imagemagick - - # Add an `after-prepare` step if you need to run commands after the prepare step. - # Each command should be listed on a separate line. - # This step is useful for C/C++ analysis where you want to prepare the environment - # for the `configure` step without changing the default behavior for that step. - after_prepare: - - export PRE_REQS_DIR=$(readlink -f .)/pre-reqs - - git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 - - cd lib3270 - - ./autogen.sh - - ./configure --prefix=/usr - - make - - make DESTDIR=${PRE_REQS_DIR} install - - cd .. - - export LIB3270_CFLAGS="-DLIB3270_NAME=3270 -DLIB3270_REVISION=00000000 -I${PRE_REQS_DIR}/usr/include" - - export LIB3270_LIBS="-L${PRE_REQS_DIR}/usr/lib -l3270" - diff --git a/lgtm.yml b/lgtm.yml new file mode 100644 index 0000000..df8fcbe --- /dev/null +++ b/lgtm.yml @@ -0,0 +1,40 @@ + +# Reference: https://github.com/yasio/yasio/blob/main/.lgtm.yml + +extraction: + # Define settings for C/C++ analysis + ##################################### + cpp: + prepare: + packages: + - gettext + - git + - make + - autotools-dev + - autoconf + - automake + - pkg-config + - gettext + - libssl-dev + - libcurl4-openssl-dev + - libgtk-3-dev + - imagemagick + + configure: + command: + - export PRE_REQS_DIR="$(readlink -f .)/pre-reqs" + - mkdir -p "${PRE_REQS_DIR}/src" + - git clone https://github.com/PerryWerneck/lib3270.git "${PRE_REQS_DIR}/src/lib3270" + - ${PRE_REQS_DIR}/src/lib3270/autogen.sh --prefix=/usr + - make -C ${PRE_REQS_DIR}/src/lib3270 all + - make DESTDIR=${PRE_REQS_DIR} -C ${PRE_REQS_DIR}/src/lib3270 install + - find "${PRE_REQS_DIR}" + - export LIB3270_CFLAGS="-DLIB3270_NAME=3270 -DLIB3270_REVISION=00000000 -I${PRE_REQS_DIR}/usr/include" + - export LIB3270_LIBS="-L${PRE_REQS_DIR}/usr/lib -l3270" + - ./autogen.sh --prefix=/usr --with-product-name="pw3270" + - cat Makefile + + index: + build_command: + - make all + -- libgit2 0.21.2