2019-02-23 14:23:17 -06:00
|
|
|
steps:
|
|
|
|
- script: |
|
2019-06-15 02:27:46 -05:00
|
|
|
set -e
|
2019-02-23 14:23:17 -06:00
|
|
|
sudo rm -rf /var/cache/dnf/*
|
2019-06-30 16:39:38 -05:00
|
|
|
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
|
2019-07-03 16:29:24 -05:00
|
|
|
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
|
2020-02-17 06:21:10 -06:00
|
|
|
sudo dnf -y module enable nodejs:12
|
2019-02-23 14:23:17 -06:00
|
|
|
sudo dnf makecache || :
|
|
|
|
echo "Installing base development environment"
|
2019-11-13 00:55:36 -06:00
|
|
|
sudo dnf install -y \
|
|
|
|
gdb-minimal \
|
|
|
|
make \
|
|
|
|
autoconf \
|
|
|
|
rpm-build \
|
|
|
|
gettext-devel \
|
|
|
|
automake \
|
|
|
|
libtool \
|
|
|
|
docker \
|
|
|
|
python3-paramiko \
|
|
|
|
python3-pyyaml \
|
|
|
|
|
2019-02-23 14:23:17 -06:00
|
|
|
echo "Installing FreeIPA development dependencies"
|
2020-03-18 07:19:55 -05:00
|
|
|
sudo dnf builddep -y --skip-broken -D "with_wheels 1" -D "with_lint 1" -D "with_doc 1" --spec freeipa.spec.in --best --allowerasing --setopt=install_weak_deps=False
|
2019-02-23 14:23:17 -06:00
|
|
|
displayName: Prepare build environment
|