-
Notifications
You must be signed in to change notification settings - Fork 525
/
lgtm.yml
65 lines (65 loc) · 2.84 KB
/
lgtm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
path_classifiers:
test:
exclude: tests
extraction:
python:
python_setup:
version: "2"
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
- libyang-dev
- libzmq3-dev
- libzmq5
- swig3.0
- libpython2.7-dev
- libgtest-dev
- libgmock-dev
- dh-exec
- doxygen
- cdbs
- bison
- flex
- graphviz
- autoconf-archive
- uuid-dev
after_prepare:
- git clone https://github.com/Azure/sonic-buildimage; pushd sonic-buildimage/src/libnl3
- git clone https://github.com/thom311/libnl libnl3-3.5.0; pushd libnl3-3.5.0; git checkout tags/libnl3_5_0
- git apply ../patch/0001-mpls-encap-accessors.patch
- git apply ../patch/0002-mpls-remove-nl_addr_valid.patch
- ln -s ../debian debian
- fakeroot dpkg-buildpackage -us -uc -b
- popd; popd
- 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
- git clone --recursive https://github.com/Azure/sonic-sairedis; pushd sonic-sairedis; ./autogen.sh; DEB_BUILD_OPTIONS=nocheck SWSS_COMMON_INC="$LGTM_WORKSPACE/usr/include" SWSS_COMMON_LIB="$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu" fakeroot debian/rules binary-syncd-vs; popd
- pushd sonic-buildimage/src/libnl3/
- dpkg-deb -x libnl-3-200_3.5.0-1_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libnl-3-dev_3.5.0-1_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libnl-genl-3-200_3.5.0-1_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libnl-genl-3-dev_3.5.0-1_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libnl-route-3-200_3.5.0-1_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libnl-route-3-dev_3.5.0-1_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libnl-nf-3-200_3.5.0-1_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libnl-nf-3-dev_3.5.0-1_amd64.deb $LGTM_WORKSPACE
- popd
- dpkg-deb -x libsairedis_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libsairedis-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libsaimetadata_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libsaimetadata-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libsaivs_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libsaivs-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
configure:
command:
- ./autogen.sh
- ./configure --prefix=/usr --with-extra-inc=$LGTM_WORKSPACE/usr/include --with-extra-lib=$LGTM_WORKSPACE/lib/x86_64-linux-gnu --with-extra-usr-lib=$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu --with-libnl-3.0-inc=$LGTM_WORKSPACE/usr/include/libnl3