2a25db9ee6
A recent change that didn't fail with hard-tabs made me realise we're not running tox -e pep8 ... which means we're not running dib-lint which should find this (and other things). I couldn't pinpoint when this happened; maybe job config was never in this repo. Anyway, move the pylint and dib-lint/flake8 testing to the now standard "linters" and update the linting job to openstack-tox-linters. It looks like pylint is very lightly used (came in with I7e24d8348db3aef79e1395d12692199a1f80161a and we've never expanded any testing). Leave this alone for now, but probably it is not important any more. This revealed some issues; updated flake8 (Iaa19c36f8cab8482a01f764c588375db8e7d8be3) found some spacing issues with keywords and an update to elrepo to match our standard bash flags. Change-Id: I45bf108c467f7c8190ca252e6c48450c2622aaf8
24 lines
462 B
Bash
Executable File
24 lines
462 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
case "$DISTRO_NAME" in
|
|
centos* | rhel* | rocky*)
|
|
dnf install -y elrepo-release.noarch
|
|
if [ ${DIB_ELREPO_KERNEL:-0} -eq 1 ]; then
|
|
rpm -q dnf-plugins-core || dnf install -y dnf-plugins-core
|
|
dnf config-manager --set-enabled "elrepo-kernel"
|
|
fi
|
|
;;
|
|
*)
|
|
echo "Distro \"$DISTRO_NAME\" is not supported"
|
|
exit 1
|
|
;;
|
|
esac
|
|
exit 0
|