-
Notifications
You must be signed in to change notification settings - Fork 3
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
ci: initial Packit configuration #1
Open
mrc0mmand
wants to merge
7
commits into
redhat-plumbers:rhel-9
Choose a base branch
from
mrc0mmand:packit-onboard
base: rhel-9
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
99cac82
login: create /var/log/lastlog
karelzak 53ce193
login: default motd file
karelzak 0162cfc
tests: make ./run.sh more robust
karelzak 202bbad
tests: make mount/fstab-all more robust
karelzak d39f86f
tests: make eject umount tests more robust
karelzak b90d590
ci: initial Packit configuration
mrc0mmand e66cdb9
ci: enable build tests
mrc0mmand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
# vi:ts=2 sw=2 et: | ||
# | ||
# Docs: https://packit.dev/docs/ | ||
|
||
specfile_path: .packit_rpm/util-linux.spec | ||
synced_files: | ||
- .packit.yaml | ||
- src: .packit_rpm/util-linux.spec | ||
dest: util-linux.spec | ||
upstream_package_name: util-linux | ||
downstream_package_name: util-linux | ||
# `git describe` returns in util-linux's case 'v2.37.2-xxx' which breaks RPM version | ||
# # detection (that expects 2.37.2-xxx'). Let's tweak the version string accordingly | ||
upstream_tag_template: "v{version}" | ||
|
||
actions: | ||
post-upstream-clone: | ||
# Use the CentOS Stream specfile | ||
- "git clone https://gitlab.com/redhat/centos-stream/rpms/util-linux.git .packit_rpm --depth=1" | ||
# Drop the "sources" file so rebase-helper doesn't think we're a dist-git | ||
- "rm -fv .packit_rpm/sources" | ||
# Drop all patches, since they're already included in the tarball | ||
- "sed -ri '/^Patch[0-9]+:/d' .packit_rpm/util-linux.spec" | ||
# We need to call autogen, since we use a custom tarball | ||
- "sed -i '/^### Dependencies/aBuildRequires: bison' .packit_rpm/util-linux.spec" | ||
- "sed -i '/^unset LINGUAS/a./autogen.sh' .packit_rpm/util-linux.spec" | ||
# Enable tests after build | ||
- "sed -i '/^### Macros/a%define _with_check 1' .packit_rpm/util-linux.spec" | ||
create-archive: | ||
# We need to override the default create-archive action, since we need to tweak | ||
# the resulting tarball and add a .tarball-version file to it, otherwise | ||
# util-linux fails to detect its version during build | ||
- "bash -c 'echo $PACKIT_PROJECT_VERSION >.tarball-version'" | ||
- "bash -c 'git archive --prefix ${PACKIT_PROJECT_NAME_VERSION}/ --add-file .tarball-version --output .packit_rpm/${PACKIT_PROJECT_NAME_VERSION}.tar.gz HEAD'" | ||
- "bash -c 'echo .packit_rpm/${PACKIT_PROJECT_NAME_VERSION}.tar.gz'" | ||
|
||
# Available targets can be listed via `copr-cli list-chroots` | ||
jobs: | ||
# Build test | ||
- job: copr_build | ||
trigger: commit | ||
metadata: | ||
branch: rhel-9 | ||
targets: | ||
# FIXME: change to CentOS 9 once it's available | ||
- fedora-34-aarch64 | ||
- fedora-34-ppc64le | ||
- fedora-34-x86_64 | ||
|
||
# TODO: configure TFT | ||
# Run tests (via testing farm) | ||
#- job: tests | ||
# trigger: pull_request | ||
# metadata: | ||
# targets: | ||
# # FIXME: change to CentOS 9 once it's available | ||
# - fedora-34-x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CentOS 9 targets are now available