-
Notifications
You must be signed in to change notification settings - Fork 6
WIP: Test Fedora integration #10
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
Open
pvalena
wants to merge
2
commits into
voxik:master
Choose a base branch
from
pvalena:test_upstream
base: master
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
2 commits
Select commit
Hold shift + click to select a range
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 hidden or 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 @@ | ||
| 1 |
This file contains hidden or 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,12 @@ | ||
| specfile_path: ci/rubygem-abrt.spec | ||
| jobs: | ||
| - job: tests | ||
| trigger: pull_request | ||
| metadata: | ||
| targets: | ||
| - fedora-all | ||
| actions: | ||
| create-archive: | ||
| - bash -c "gem build *.gemspec; mv -f *.gem ci/; ls ci/*.gem" | ||
| fix-spec-file: | ||
| - 'true' | ||
This file contains hidden or 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,139 @@ | ||
| # THIS SPEC FILE IS AN OUTDATED COPY OF FEDORA ONE. USE IT ONLY FOR CI. | ||
| # https://src.fedoraproject.org/rpms/rubygem-abrt/blob/master/f/rubygem-abrt.spec | ||
|
|
||
| %global gem_name abrt | ||
|
|
||
| Name: rubygem-%{gem_name} | ||
| Version: 0.4.0 | ||
| Release: 2%{?dist} | ||
| Summary: ABRT support for Ruby | ||
| License: MIT | ||
| URL: http://github.com/voxik/abrt-ruby | ||
| Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | ||
| Requires: libreport-filesystem | ||
| BuildRequires: ruby(release) | ||
| BuildRequires: rubygems-devel | ||
| BuildRequires: ruby | ||
| BuildRequires: rubygem(rspec) | ||
| BuildArch: noarch | ||
|
|
||
| %description | ||
| Provides ABRT reporting support for libraries/applications written using Ruby. | ||
|
|
||
|
|
||
| %package doc | ||
| Summary: Documentation for %{name} | ||
| Requires: %{name} = %{version}-%{release} | ||
| BuildArch: noarch | ||
|
|
||
| %description doc | ||
| Documentation for %{name}. | ||
|
|
||
| %prep | ||
| %setup -q -n %{gem_name}-%{version} | ||
|
|
||
| %build | ||
| # Create the gem as gem install only works on a gem file | ||
| gem build ../%{gem_name}-%{version}.gemspec | ||
|
|
||
| # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir | ||
| # by default, so that we can move it into the buildroot in %%install | ||
| %gem_install | ||
|
|
||
| %install | ||
| mkdir -p %{buildroot}%{gem_dir} | ||
| cp -a .%{gem_dir}/* \ | ||
| %{buildroot}%{gem_dir}/ | ||
|
|
||
| mkdir -p %{buildroot}%{_sysconfdir}/libreport/events.d/ | ||
| cp -a .%{gem_instdir}/config/ruby_event.conf %{buildroot}%{_sysconfdir}/libreport/events.d/ | ||
|
|
||
| %files | ||
| %dir %{gem_instdir} | ||
| %license %{gem_instdir}/LICENSE.txt | ||
| %{gem_libdir} | ||
| %exclude %{gem_cache} | ||
| %{gem_spec} | ||
|
|
||
| %exclude %{gem_instdir}/config | ||
| %config(noreplace) %{_sysconfdir}/libreport/events.d/ruby_event.conf | ||
|
|
||
| %files doc | ||
| %doc %{gem_docdir} | ||
| %doc %{gem_instdir}/README.md | ||
| %{gem_instdir}/Rakefile | ||
|
|
||
| %changelog | ||
| * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild | ||
|
|
||
| * Mon Jun 22 2020 Vít Ondruch <vondruch@redhat.com> - 0.4.0-1 | ||
| - Update to abrt 0.4.0. | ||
| Resolves: rhbz#1849708 | ||
|
|
||
| * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-8 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild | ||
|
|
||
| * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-7 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild | ||
|
|
||
| * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-6 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild | ||
|
|
||
| * Tue Jul 31 2018 Vít Ondruch <vondruch@redhat.com> - 0.3.0-5 | ||
| - Execute test suite unconditionally. | ||
| - Upload correct sources. | ||
|
|
||
| * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild | ||
|
|
||
| * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild | ||
|
|
||
| * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild | ||
|
|
||
| * Mon Mar 27 2017 Vít Ondruch <vondruch@redhat.com> - 0.3.0-1 | ||
| - Update to abrt 0.3.0. | ||
|
|
||
| * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild | ||
|
|
||
| * Thu Feb 02 2017 Vít Ondruch <vondruch@redhat.com> - 0.2.0-1 | ||
| - Update to abrt 0.2.0. | ||
|
|
||
| * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild | ||
|
|
||
| * Tue Sep 01 2015 Vít Ondruch <vondruch@redhat.com> - 0.1.1-1 | ||
| - Update to abrt 0.1.1. | ||
|
|
||
| * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-3 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild | ||
|
|
||
| * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-2 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild | ||
|
|
||
| * Thu Oct 24 2013 Vít Ondruch <vondruch@redhat.com> - 0.0.6-1 | ||
| - Update to abrt 0.0.6. | ||
|
|
||
| * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.5-3 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild | ||
|
|
||
| * Tue Jul 02 2013 Vít Ondruch <vondruch@redhat.com> - 0.0.5-2 | ||
| - Disable tests for EL builds. | ||
|
|
||
| * Mon May 06 2013 Vít Ondruch <vondruch@redhat.com> - 0.0.5-1 | ||
| - Update to abrt 0.0.5. | ||
|
|
||
| * Mon Mar 04 2013 Vít Ondruch <vondruch@redhat.com> - 0.0.3-3 | ||
| - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 | ||
|
|
||
| * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.3-2 | ||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild | ||
|
|
||
| * Tue Jul 17 2012 Vít Ondruch <vondruch@redhat.com> - 0.0.3-1 | ||
| - Update to abrt 0.0.3. | ||
|
|
||
| * Mon Jul 09 2012 Vít Ondruch <vondruch@redhat.com> - 0.0.2-1 | ||
| - Initial package |
This file contains hidden or 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,13 @@ | ||
| summary: Run spec test suite | ||
|
|
||
| prepare: | ||
| # Until cruncher is replaced with TMT | ||
| # how: install | ||
| # package: rubygem-rspec | ||
| how: shell | ||
| script: 'dnf install -y rubygem-rspec' | ||
|
|
||
| execute: | ||
| # Until cruncher is replaced with TMT | ||
| # script: rspec spec | ||
| script: cd ~/git-source; rspec spec |
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.
Ugh, I had old .gem files lying around and now they are moved to
ci/folder, that is not niceUh oh!
There was an error while loading. Please reload this page.
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.
If only RubyGems were not so broken 🤯
ruby/rubygems#3953
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.
Oh, I didn't think of that. But I'm glad I didn't have anything like
rm *.gemthere in the beginning.Unfortunately, I couldn't think of any other (generic) way to do it. Ideally, there wouldn't be any of moving, or changing directories, but the
.gemfile needs to be inci/folder for packit to find it (not sure whether that's a bug; I noted that in some issue, but maybe it's init works, don't touch itstate).Creating the gem using
-Cwould definitely help. Thanks for starting that thread, and creating PR!