lgtm REFACTOR use workspace for dependencies
@@ -3,15 +3,16 @@ extraction:
prepare:
packages: libpcre2-dev
after_prepare:
+ - cd $LGTM_WORKSPACE
- git clone -b devel https://github.com/CESNET/libyang.git
- cd libyang; mkdir build; cd build
- - cmake -DCMAKE_INSTALL_PREFIX=$LGTM_SRC/usr -DENABLE_BUILD_TESTS=OFF ..
+ - cmake -DCMAKE_INSTALL_PREFIX=$LGTM_WORKSPACE -DENABLE_BUILD_TESTS=OFF ..
- make -j2
- make install
configure:
command:
- mkdir build; cd build
- - cmake -DCMAKE_INCLUDE_PATH=$LGTM_SRC/usr/include -DCMAKE_LIBRARY_PATH=$LGTM_SRC/usr/lib ..
+ - cmake -DCMAKE_INCLUDE_PATH=$LGTM_WORKSPACE/include -DCMAKE_LIBRARY_PATH=$LGTM_WORKSPACE/lib ..
index:
build_command:
- cd build
