未验证 提交 10d922c5 编写于 作者: M Matt Witherspoon 提交者: GitHub

Merge pull request #2559 from pacificcode/eosio_build_lcov

Centos: added install of lcov
......@@ -124,7 +124,7 @@
printf "\n\tYUM repository successfully updated.\n"
DEP_ARRAY=( git autoconf automake libtool ocaml.x86_64 doxygen libicu-devel.x86_64 \
DEP_ARRAY=( git autoconf automake libtool ocaml.x86_64 doxygen graphviz-devel.x86_64 libicu-devel.x86_64 \
bzip2-devel.x86_64 openssl-devel.x86_64 gmp-devel.x86_64 python-devel.x86_64 gettext-devel.x86_64)
COUNT=1
DISPLAY=""
......@@ -172,6 +172,44 @@
printf "\n\tNo required YUM dependencies to install.\n"
fi
if [[ $ENABLE_CODE_COVERAGE == true ]]; then
printf "\n\tChecking perl installation."
perl_bin=$( which perl 2>/dev/null )
if [ $? -ne 0 ]; then
printf "\n\tInstalling perl."
yum -y install perl
if [ $? -ne 0 ]; then
printf "\n\tUnable to install perl at this time.\n"
printf "\n\tExiting now.\n"
fi
else
printf "\n\tPerl installation found at ${perl_bin}."
fi
printf "\n\tChecking LCOV installation."
if [ ! -e /usr/local/bin/lcov ]; then
printf "\n\tLCOV installation not found.\n"
printf "\tInstalling LCOV.\n"
cd ${TEMP_DIR}
git clone https://github.com/linux-test-project/lcov.git
if [ $? -ne 0 ]; then
printf "\tUnable to clone LCOV at this time.\n"
printf "\tExiting now.\n\n"
exit;
fi
cd lcov
sudo make install
if [ $? -ne 0 ]; then
printf "\tUnable to install LCOV at this time.\n"
printf "\tExiting now.\n\n"
exit;
fi
rm -rf ${TEMP_DIR}/lcov
printf "\tSuccessfully installed LCOV.\n"
else
printf "\n\tLCOV installation found @ /usr/local/bin/lcov.\n"
fi
fi
printf "\n\tChecking CMAKE installation.\n"
if [ ! -e ${CMAKE} ]; then
printf "\tInstalling CMAKE\n"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册