Fedora CI: Add support for Zuul based CI

This commit is contained in:
Miro Hrončok 2020-03-06 15:05:24 +01:00
parent 430517ec46
commit fe3aa8f6e9

View File

@ -18,7 +18,15 @@ if [ ! -f $config ]; then
cp $original $config cp $original $config
echo -e '\n\nconfig_opts[f"{config_opts.package_manager}.conf"] += """' >> $config echo -e '\n\nconfig_opts[f"{config_opts.package_manager}.conf"] += """' >> $config
# The zuul CI has zuul-build.repo
# The Jenkins CI has test-<pkgname>.repo
# We run this code from various packages, so we support any <pkgname>
if [ -f /etc/yum.repos.d/zuul-build.repo ]; then
cat /etc/yum.repos.d/zuul-build.repo >> $config
else
cat /etc/yum.repos.d/test-*.repo >> $config cat /etc/yum.repos.d/test-*.repo >> $config
fi
echo -e '\n"""\n' >> $config echo -e '\n"""\n' >> $config
fi fi