Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specs: Skip the 'check' (test) phase when BUILDER_SKIP_CHECKS is set #74

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions helpers/build-specs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ function new_rpms {
diff -u /tmp/rpms-before /tmp/rpms-after | tee /tmp/rpms-diff | grep -v '^[+][+]' | grep '^[+]' | sed 's/^[+]//'
}

rpmbuild_options=""
if [ -n "${BUILDER_SKIP_CHECKS}" ]; then
rpmbuild_options="--nocheck"
fi

for spec in "${specs[@]}"; do
echo "==================================================================="
echo "-> $spec"
Expand All @@ -123,12 +128,13 @@ for spec in "${specs[@]}"; do

# Download sources
spectool -g -R "$spec"

# Build the rpm and record which files are new
rpm_file_list > /tmp/rpms-before
# NOTE: source_date_epoch_from_changelog is always overridden by SOURCE_DATE_EPOCH if that is set.
# See https://fossies.org/linux/rpm/build/build.c#l_298
rpmbuild \
${rpmbuild_options} \
--define "_sdistdir /sdist" \
--define "_buildhost reproducible" \
--define "source_date_epoch_from_changelog Y" \
Expand All @@ -147,4 +153,3 @@ for spec in "${specs[@]}"; do
echo "Skipping spec (BUILDER_SKIP or in cache)"
fi
done

Loading