Skip to content

Commit

Permalink
amazon: added check for perl installation before install lcov
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Hamilton committed Apr 18, 2018
1 parent df37506 commit 3136f98
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions scripts/eosio_build_amazon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,19 @@
fi

if [[ $ENABLE_CODE_COVERAGE == true ]]; then
printf "\n\tChecking LCOV installation.\n"
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"
Expand All @@ -128,7 +140,7 @@
printf "\n\tLCOV installation found @ /usr/local/bin/lcov.\n"
fi
fi
exit

printf "\n\tChecking CMAKE installation.\n"
if [ ! -e ${CMAKE} ]; then
printf "\tInstalling CMAKE\n"
Expand Down

0 comments on commit 3136f98

Please sign in to comment.