Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit c9bbb1b

Browse files
author
ygorelik
committed
Fixed Travis test for CentOS
1 parent 1a9c39f commit c9bbb1b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,21 @@ MSG_COLOR=$YELLOW
8383

8484
test_python_installation
8585

86+
os_type=$(uname)
87+
if [[ ${os_type} == "Linux" ]] ; then
88+
os_info=$(cat /etc/*-release)
89+
else
90+
os_info=$(sw_vers)
91+
fi
92+
print_msg "Running OS type: $os_type"
93+
print_msg "OS info: $os_info"
94+
95+
YDK_HOME=`pwd`
96+
if [[ $(uname) == "Linux" && ${os_info} == *"fedora"* ]] ; then
97+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$YDK_HOME/grpc/libs/opt:$YDK_HOME/protobuf-3.5.0/src/.libs:/usr/local/lib64
98+
print_msg "LD_LIBRARY_PATH is set to: $LD_LIBRARY_PATH"
99+
fi
100+
86101
print_msg "Installing YDK core package"
87102
cd core
88103
${PYTHON_BIN} setup.py sdist

0 commit comments

Comments
 (0)