Skip to content

Commit b6bce8b

Browse files
authored
Install libyang to azure pipeline (#17)
#### Why I did it sonic-swss-common lib will add dependency to libyang soon, so need install libyang lib to prevent build and UT break. #### How I did it Modify azure pipeline to install libyang in azure pipeline steps. #### How to verify it Pass all UT. #### Which release branch to backport (provide reason below if selected) #### Description for the changelog Modify azure pipeline to install libyang in azure pipeline steps. #### Link to config_db schema for YANG module changes #### A picture of a cute animal (not mandatory but encouraged)
1 parent e2cd585 commit b6bce8b

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.azure-pipelines/build.yml

+21
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,27 @@ jobs:
4747
- checkout: self
4848
clean: true
4949
submodules: true
50+
- task: DownloadPipelineArtifact@2
51+
inputs:
52+
source: specific
53+
project: build
54+
pipeline: Azure.sonic-buildimage.common_libs
55+
runVersion: 'latestFromBranch'
56+
runBranch: 'refs/heads/master'
57+
path: $(Build.ArtifactStagingDirectory)/download
58+
${{ if eq(parameters.arch, 'amd64') }}:
59+
artifact: common-lib
60+
${{ else }}:
61+
artifact: common-lib.${{ parameters.arch }}
62+
patterns: |
63+
target/debs/buster/libyang-*.deb
64+
target/debs/buster/libyang_*.deb
65+
displayName: "Download libyang from common lib"
66+
- script: |
67+
set -ex
68+
sudo dpkg -i $(find ./download -name *.deb)
69+
workingDirectory: $(Build.ArtifactStagingDirectory)
70+
displayName: "Install libyang from common lib"
5071
- task: DownloadPipelineArtifact@2
5172
inputs:
5273
source: specific

lgtm.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ extraction:
1515
- "swig3.0"
1616
- "uuid-dev"
1717
- "libzmq3-dev"
18+
- "libyang"
19+
- "libyang-dev"
1820
after_prepare:
1921
- "git clone https://github.com/Azure/sonic-swss-common; pushd sonic-swss-common; ./autogen.sh; fakeroot dpkg-buildpackage -us -uc -b; popd"
2022
- "dpkg-deb -x libswsscommon_1.0.0_amd64.deb $LGTM_WORKSPACE"

0 commit comments

Comments
 (0)