Skip to content

Commit

Permalink
infra: Add rpmlint test to upstram CI
Browse files Browse the repository at this point in the history
rpmlint is used in Fedora dist git in the release process.
Having it included in the upstream CI will allow us early detection
of the potential linter issues in spec / rpms.
  • Loading branch information
elkoniu committed Oct 13, 2024
1 parent 1d77360 commit fe2d34b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ container-rpm-test:
$(RPM_NAME):$(CI_TAG) \
sh -exc ' \
/run-build-and-arg make run-rpm-tests-only; \
dnf install -y /tmp/anaconda/result/build/01-rpm-build/*.rpm'
dnf install -y /tmp/anaconda/result/build/01-rpm-build/*.rpm; \
cd /tmp/anaconda; \
if [ -f rpmlint.toml ]; then LINT_ARG="--config rpmlint.toml"; else LINT_ARG=""; fi; \
rpmlint *.spec.in result/build/01-rpm-build/*.rpm ${LINT_ARG}'

container-rpms:
@./scripts/testing/check-container-age.sh "$(RPM_NAME):$(CI_TAG)"
Expand Down
3 changes: 2 additions & 1 deletion dockerfile/anaconda-rpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ RUN set -ex; \
python3-pocketlint \
/usr/bin/xargs \
rsync \
rpm-build; \
rpm-build \
rpmlint; \
if ! grep -q VARIANT.*eln /etc/os-release; then \
BRANCH="${git_branch}"; \
if [ $BRANCH == "master" ]; then \
Expand Down

0 comments on commit fe2d34b

Please sign in to comment.