forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jenkins]: Move script out of Jenkinsfile for re-use purpose (#35)
Make the files DRY Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
- Loading branch information
Shuotian Cheng
authored
Jun 13, 2019
1 parent
b4c4992
commit 6bf888f
Showing
4 changed files
with
73 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash -x | ||
|
||
# Install SWIG | ||
sudo dpkg -i buildimage/target/debs/stretch/swig3.0_*.deb | ||
|
||
# Install Redis | ||
sudo dpkg -i buildimage/target/debs/stretch/redis-tools_*.deb | ||
sudo dpkg -i buildimage/target/debs/stretch/redis-server_*.deb | ||
|
||
# Install HIREDIS | ||
sudo dpkg -i buildimage/target/debs/stretch/libhiredis*.deb | ||
|
||
# Install libnl3 | ||
sudo dpkg -i buildimage/target/debs/stretch/libnl-3-200_*.deb | ||
sudo dpkg -i buildimage/target/debs/stretch/libnl-3-dev_*.deb | ||
sudo dpkg -i buildimage/target/debs/stretch/libnl-genl-3-200_*.deb | ||
sudo dpkg -i buildimage/target/debs/stretch/libnl-genl-3-dev_*.deb | ||
sudo dpkg -i buildimage/target/debs/stretch/libnl-route-3-200_*.deb | ||
sudo dpkg -i buildimage/target/debs/stretch/libnl-route-3-dev_*.deb | ||
sudo dpkg -i buildimage/target/debs/stretch/libnl-nf-3-200_*.deb | ||
sudo dpkg -i buildimage/target/debs/stretch/libnl-nf-3-dev_*.deb | ||
sudo dpkg -i buildimage/target/debs/stretch/libnl-cli-3-200_*.deb | ||
sudo dpkg -i buildimage/target/debs/stretch/libnl-cli-3-dev_*.deb | ||
|
||
pushd sonic-swss-common | ||
|
||
./autogen.sh | ||
fakeroot debian/rules binary | ||
|
||
popd | ||
|
||
mkdir target | ||
cp *.deb target/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash -x | ||
|
||
sudo sed -i 's/notify-keyspace-events ""/notify-keyspace-events AKE/' /etc/redis/redis.conf | ||
sudo service redis-server start | ||
|
||
sudo dpkg -i libswsscommon_*.deb | ||
sudo dpkg -i python-swsscommon_*.deb | ||
|
||
pushd sonic-swss-common | ||
|
||
sudo ./tests/tests | ||
|
||
redis-cli FLUSHALL | ||
py.test tests | ||
|
||
popd |