-
Notifications
You must be signed in to change notification settings - Fork 332
/
prepare-build.yml
23 lines (23 loc) · 1.17 KB
/
prepare-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
steps:
- script: |
set -e
sudo rm -rf /var/cache/dnf/*
echo "dnf.conf: enable fastestmirror, use 8 download workers, lower timeout to fail faster, and add more retries"
sudo tee -a /etc/dnf/dnf.conf <<EOF > /dev/null
fastestmirror = True
max_parallel_downloads = 8
timeout = 8
retries = 20
EOF
echo 'Disable modular repositories'
sudo dnf config-manager '*modular*' --set-disabled
echo "Fedora mirror metalink content:"
for metalink in $(sudo dnf repolist -v |grep Repo-metalink | awk '{print $2}' ) ; do echo '###############' ; echo '####' ; echo $metalink ; echo '####' ; curl $metalink ; done
echo "Fastestmirror results:"
sudo cat /var/cache/dnf/fastestmirror.cache
sudo dnf makecache || :
echo "Installing base development environment"
sudo dnf install -y gdb make autoconf rpm-build gettext-devel automake libtool 'nodejs(abi) < 11' docker python3-paramiko || :
echo "Installing FreeIPA development dependencies"
sudo dnf builddep -y --skip-broken -D "with_wheels 1" -D "with_lint 1" --spec freeipa.spec.in --best --allowerasing --setopt=install_weak_deps=False || :
displayName: Prepare build environment