Skip to content

Commit

Permalink
infra: tests: add rpmlint to existing rpm tests
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 enable early detection
of the potential linter issues in spec / rpms.
  • Loading branch information
elkoniu authored and KKoukiou committed Oct 25, 2024
1 parent b986a77 commit 0c1cb00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ 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; \
rpmlint *.spec.in result/build/01-rpm-build/*.rpm --config rpmlint.toml'

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 @@ -42,7 +42,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 0c1cb00

Please sign in to comment.