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 10, 2024
1 parent 1d77360 commit e822c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ 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 *.rpm result/build/01-rpm-build/*.rpm'

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 e822c0c

Please sign in to comment.