Commit 7072dcf3 authored by rem31's avatar rem31
Browse files

test_new_ci

parent 7de97e22
......@@ -7,15 +7,22 @@ if [ -z "$VERSION" -o -z "$RELEASE" -o -z "$DISTRIB" ] ; then
fi
# echo "################################################## BUILDING CLIB ##################################################"
# echo "################################################## install CLIB ##################################################"
if [ $DISTRIB = "el7" ] ; then
curl http://yum-1.centreon.com/standard/21.10/el7/unstable/x86_64/clib/centreon-clib-21.10.0-1632908959.e89357c/centreon-clib-21.10.0-1632908959.e89357c.el7.centos.x86_64.rpm --output centreon-clib-21.10.0-1632908959.e89357c.el7.centos.x86_64.rpm
curl http://yum-1.centreon.com/standard/21.10/el7/unstable/x86_64/clib/centreon-clib-21.10.0-1632908959.e89357c/centreon-clib-devel-21.10.0-1632908959.e89357c.el7.centos.x86_64.rpm --output centreon-clib-devel-21.10.0-1632908959.e89357c.el7.centos.x86_64.rpm
yum install centreon-clib*.rpm
else
curl http://yum-1.centreon.com/standard/21.10/el8/unstable/x86_64/clib/clib-21.10.0-1632908959.e89357c/centreon-clib-21.10.0-1632908959.e89357c.el8.x86_64.rpm --output centreon-clib-21.10.0-1632908959.e89357c.el8.x86_64.rpm
curl http://yum-1.centreon.com/standard/21.10/el8/unstable/x86_64/clib/clib-21.10.0-1632908959.e89357c/centreon-clib-devel-21.10.0-1632908959.e89357c.el8.x86_64.rpm --output centreon-clib-devel-21.10.0-1632908959.e89357c.el8.x86_64.rpm
yum install centreon-clib*.rpm
fi
# echo "################################################## BUILDING CONNECTOR ##################################################"
# generate rpm connector
mkdir centreon-connector-$VERSION
cp -r centreon-connector/* centreon-connector-$VERSION
tar -czf centreon-connector-$VERSION.tar.gz centreon-connector-$VERSION cmake.sh
tar -czf centreon-connector-$VERSION.tar.gz centreon-connector-$VERSION centreon-connector/cmake.sh
mv centreon-connector-$VERSION.tar.gz /root/rpmbuild/SOURCES/
rm -rf centreon-connector-$VERSION
......
#!/bin/bash
set -e
DISTRIB=$(lsb_release -rs | cut -f1 -d.)
# echo "################################################## install CLIB ##################################################"
if [ $DISTRIB = "7" ] ; then
curl http://yum-1.centreon.com/standard/21.10/el7/unstable/x86_64/clib/centreon-clib-21.10.0-1632908959.e89357c/centreon-clib-21.10.0-1632908959.e89357c.el7.centos.x86_64.rpm --output centreon-clib-21.10.0-1632908959.e89357c.el7.centos.x86_64.rpm
curl http://yum-1.centreon.com/standard/21.10/el7/unstable/x86_64/clib/centreon-clib-21.10.0-1632908959.e89357c/centreon-clib-devel-21.10.0-1632908959.e89357c.el7.centos.x86_64.rpm --output centreon-clib-devel-21.10.0-1632908959.e89357c.el7.centos.x86_64.rpm
yum install centreon-clib*.rpm
elif [ $DISTRIB = "8" ] ; then
curl http://yum-1.centreon.com/standard/21.10/el8/unstable/x86_64/clib/clib-21.10.0-1632908959.e89357c/centreon-clib-21.10.0-1632908959.e89357c.el8.x86_64.rpm --output centreon-clib-21.10.0-1632908959.e89357c.el8.x86_64.rpm
curl http://yum-1.centreon.com/standard/21.10/el8/unstable/x86_64/clib/clib-21.10.0-1632908959.e89357c/centreon-clib-devel-21.10.0-1632908959.e89357c.el8.x86_64.rpm --output centreon-clib-devel-21.10.0-1632908959.e89357c.el8.x86_64.rpm
yum install centreon-clib*.rpm
elif [ "$(cat /etc/debian_version)" = "10.10" ] ; then
fi
#Cmake
rm -rf /src/build
mkdir /src/build
cd /src/build/
DISTRIB=$(lsb_release -rs | cut -f1 -d.)
if [ "$DISTRIB" = "7" ] ; then
source /opt/rh/devtoolset-9/enable
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment