Skip to content

Commit

Permalink
[lgtm]: add lgtm static analysis configuration (#589)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <lguohan@gmail.com>
  • Loading branch information
lguohan authored Apr 7, 2020
1 parent c961260 commit 0ad13f5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lgtm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
extraction:
cpp:
prepare:
packages:
- libxml-simple-perl
- aspell
- aspell-en
- libhiredis-dev
- libnl-3-dev
- libnl-genl-3-dev
- libnl-route-3-dev
- libnl-nf-3-dev
- swig3.0
- libpython2.7-dev
- libgtest-dev
- dh-exec
after_prepare:
- ls -l
- git clone https://github.com/Azure/sonic-swss-common; pushd sonic-swss-common; ./autogen.sh; fakeroot dpkg-buildpackage -us -uc -b; popd
- dpkg-deb -x libswsscommon_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libswsscommon-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
configure:
command:
- ./autogen.sh
- ./configure --prefix=/usr --with-sai=vs --with-swss-common-inc=$LGTM_WORKSPACE/usr/include --with-swss-common-lib=$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu

0 comments on commit 0ad13f5

Please sign in to comment.