CI scripts: added support for yum #2520

This commit is contained in:
Alexey Milovidov 2018-06-18 05:32:49 +03:00
parent eefc4fd9c5
commit a107f113f1
3 changed files with 53 additions and 1 deletions

View File

@ -34,6 +34,9 @@ case $PACKAGE_MANAGER in
cmake)
$SUDO apt-get install -y cmake3 || $SUDO apt-get install -y cmake
;;
ninja)
$SUDO apt-get install -y ninja-build
;;
curl)
$SUDO apt-get install -y curl
;;
@ -69,6 +72,52 @@ case $PACKAGE_MANAGER in
;;
esac
;;
yum)
case $WHAT in
prepare)
;;
svn)
$SUDO yum install -y subversion
;;
gcc*)
$SUDO yum install -y gcc gcc-c++ libstdc++-static
;;
git)
$SUDO yum install -y git
;;
cmake)
$SUDO yum install -y cmake
;;
ninja)
$SUDO yum install -y ninja-build
;;
curl)
$SUDO yum install -y curl
;;
jq)
$SUDO yum install -y jq
;;
libssl-dev)
$SUDO yum install -y openssl-devel
;;
libicu-dev)
$SUDO yum install -y libicu-devel
;;
libreadline-dev)
$SUDO yum install -y readline-devel
;;
libunixodbc-dev)
$SUDO yum install -y unixODBC-devel libtool-ltdl-devel
;;
libmariadbclient-dev)
echo "There is no package with static mysqlclient library"; echo 1;
#$SUDO yum install -y mariadb-connector-c-devel
;;
*)
echo "Unknown package"; exit 1;
;;
esac
;;
pkg)
case $WHAT in
prepare)
@ -88,6 +137,9 @@ case $PACKAGE_MANAGER in
cmake)
$SUDO pkg install -y cmake
;;
ninja)
$SUDO pkg install -y ninja-build
;;
curl)
$SUDO pkg install -y curl
;;

View File

@ -4,6 +4,7 @@ set -e -x
source default-config
./install-os-packages.sh cmake
./install-os-packages.sh ninja
if [[ "$COMPILER_INSTALL_METHOD" == "packages" ]]; then
. install-compiler-from-packages.sh

View File

@ -1,4 +1,3 @@
add_library (mysqlxx ${SPLIT_SHARED}
src/Connection.cpp
src/Exception.cpp