Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
|
1ca9e4f108 | 5 months ago |
|
901cfeed04 | 1 year ago |
|
85c71c5ac7 | 1 year ago |
|
b7bd526bc8 | 1 year ago |
|
e28671fdab | 2 years ago |
@ -1 +0,0 @@
|
|||||||
1
|
|
@ -1,16 +0,0 @@
|
|||||||
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
|
|
@ -1,27 +0,0 @@
|
|||||||
#!/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