Unverified Commit 4e0e105c authored by Duncan Macleod's avatar Duncan Macleod
Browse files

ci: lint installed packages as well as rpm files

[ci rhel]
parent 56d66a70
Pipeline #480264 passed with stages
in 141 minutes and 45 seconds
......@@ -287,7 +287,9 @@ default:
echo "Requires:" &&
rpm -qp --requires "${rpmf}";
done
# lint RPMs
# install the packages we built
- yum -y -q install ${CI_PROJECT_DIR}/rpmbuild/RPMS/*/*${PACKAGE}-*.rpm
# lint packages (both installed packages and RPM files)
- |
cat << EOF > rpmlintrc
# don't validate Source0
......@@ -300,6 +302,7 @@ default:
EOF
- rpmlint
-f rpmlintrc
"*${PACKAGE}*"
${CI_PROJECT_DIR}/rpmbuild/RPMS/*/*${PACKAGE}-*.rpm
artifacts:
expire_in: 18h
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment