Compare commits
10 Commits
Author | SHA1 | Date |
---|---|---|
|
c7bca0022d | 5 months ago |
|
a8e6aeb5a2 | 7 months ago |
|
65040b8666 | 1 year ago |
|
f820268993 | 1 year ago |
|
bc04ccc9d3 | 1 year ago |
|
e3e463b2ea | 1 year ago |
|
07453de40b | 1 year ago |
|
313c537b69 | 1 year ago |
|
168a1f7535 | 1 year ago |
|
47142722f2 | 2 years ago |
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1,16 @@
|
||||
summary: Rebuild dependents to ensure that builds pass
|
||||
discover:
|
||||
- name: Rebuild collection packages
|
||||
how: shell
|
||||
tests:
|
||||
- name: Rebuild ansible-collection-community-docker
|
||||
test: tests/rebuild.sh ansible-collection-community-docker
|
||||
require:
|
||||
- ansible-core
|
||||
- ansible-packaging
|
||||
- ansible-srpm-macros
|
||||
- fedpkg
|
||||
- rpm-build
|
||||
- sudo
|
||||
execute:
|
||||
how: tmt
|
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/bash -x
|
||||
set -euo pipefail
|
||||
|
||||
package="${1}"
|
||||
|
||||
cat <<'EOF' > ~/.rpmmacros
|
||||
%_topdir %(echo $HOME)/rpmbuild
|
||||
%_sourcedir %(pwd)
|
||||
%_srcrpmdir %(pwd)
|
||||
%_rpmdir %(pwd)/rpms
|
||||
EOF
|
||||
|
||||
mkdir -p clones
|
||||
cd clones
|
||||
fedpkg clone -a "${package}"
|
||||
cd "${package}"
|
||||
fedpkg srpm
|
||||
sudo dnf builddep -y *.src.rpm
|
||||
rc=0
|
||||
rpmbuild --rebuild *.src.rpm | tee build.log || rc=$?
|
||||
|
||||
# move the results to the artifacts directory, so we can examine them
|
||||
artifacts="${TEST_ARTIFACTS:-/tmp/artifacts}"
|
||||
mkdir -p "${artifacts}"
|
||||
mv -v *.rpm rpms/*/* build.log "${artifacts}/" || :
|
||||
|
||||
exit "${rc}"
|
Loading…
Reference in new issue