Skip to content

Commit

Permalink
build: replace yum by dnf (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebaptiste committed May 30, 2024
1 parent b63ef06 commit f1798f8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ if test "${BASE}" = "debian"; then
elif test "${BASE}" = "ubuntu"; then
BACKEND="apt-get"
elif test "${BASE}" = "fedora"; then
BACKEND="yum"
BACKEND="dnf"
elif test "${BASE}" = "centos"; then
BACKEND="yum"
BACKEND="dnf"
elif test "${BASE}" = "rockylinux"; then
BACKEND="yum"
BACKEND="dnf"
elif test "${BASE}" = "rockylinux/rockylinux"; then
BACKEND="yum"
BACKEND="dnf"
elif test "${BASE}" = "almalinux"; then
BACKEND="yum"
BACKEND="dnf"
elif test "${BASE}" = "dokken/centos-stream-8"; then
BACKEND="yum"
BACKEND="dnf"
elif test "${BASE}" = "dokken/centos-stream-9"; then
BACKEND="yum"
BACKEND="dnf"
elif test "${BASE}" = "opensuse/leap"; then
BACKEND="zypper"
elif test "${BASE}" = "mageia"; then
Expand All @@ -40,18 +40,18 @@ if test "${BACKEND}" = "apt-get"; then
apt-file update
fi

if test "${BACKEND}" = "yum"; then
if test "${BACKEND}" = "dnf"; then
echo "[metwork]" >/etc/yum.repos.d/metwork.repo
echo "name=metwork" >>/etc/yum.repos.d/metwork.repo
echo "baseurl=${REPOSITORY}/" >>/etc/yum.repos.d/metwork.repo
echo "gpgcheck=0" >>/etc/yum.repos.d/metwork.repo
echo "enabled=1" >>/etc/yum.repos.d/metwork.repo
echo "metadata_expire=0" >>/etc/yum.repos.d/metwork.repo
yum -y install metwork-mfext-full metwork-mfext-layer-python3_scientific metwork-mfext-layer-python3_mapserverapi metwork-mfext-layer-python3_ia metwork-mfext-layer-python3_radartools
dnf -y install metwork-mfext-full metwork-mfext-layer-python3_scientific metwork-mfext-layer-python3_mapserverapi metwork-mfext-layer-python3_ia metwork-mfext-layer-python3_radartools
mkdir mfext mfextaddon_scientific mfextaddon_mapserver mfextaddon_python3_ia mfextaddon_radartools
yum -y install metwork-mfserv metwork-mfdata metwork-mfbase metwork-mfadmin metwork-mfsysmon
dnf -y install metwork-mfserv metwork-mfdata metwork-mfbase metwork-mfadmin metwork-mfsysmon
mkdir mfserv mfdata mfbase mfadmin mfsysmon
yum -y install make cronie diffutils acl
dnf -y install make cronie diffutils acl
cd mfext
git clone -b ${BRANCH} https://github.com/metwork-framework/mfext src
cd src/integration_tests && /opt/metwork-mfext/bin/mfext_wrapper ./run_integration_tests.sh
Expand Down

0 comments on commit f1798f8

Please sign in to comment.