[perl-Module-Implementation] Do not run release and author tests on bootstrap
Jitka Plesnikova
jplesnik at fedoraproject.org
Tue Aug 5 14:08:50 UTC 2014
commit 3c424e1a456e9cd8608304b2cb3fa52550014715
Author: Jitka Plesnikova <jplesnik at redhat.com>
Date: Tue Aug 5 16:08:39 2014 +0200
Do not run release and author tests on bootstrap
perl-Module-Implementation.spec | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/perl-Module-Implementation.spec b/perl-Module-Implementation.spec
index 843bb57..0f8c0cd 100644
--- a/perl-Module-Implementation.spec
+++ b/perl-Module-Implementation.spec
@@ -9,7 +9,7 @@
Name: perl-Module-Implementation
Version: 0.07
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Loads one of several alternate underlying implementations for a module
Group: Development/Libraries
License: Artistic 2.0
@@ -43,6 +43,10 @@ BuildRequires: perl(Test::Taint)
# ===================================================================
# Author/Release test requirements
# ===================================================================
+# Release tests include circular dependencies, so don't do them when bootstrapping:
+# Test::CPAN::Changes -> Moo -> stricture -> indirect -> Test::Kwalitee ->
+# namespace::clean -> [B::Hooks::EndOfScope|Package::Stash] -> Module::Implementation
+%if ! %{defined perl_bootstrap}
%if %{cpan_changes_available}
BuildRequires: perl(Test::CPAN::Changes) >= 0.19
%endif
@@ -59,6 +63,7 @@ BuildRequires: aspell-en
BuildRequires: perl(Pod::Wordlist::hanekomu)
BuildRequires: perl(Test::Spelling) >= 0.12
%endif
+%endif
# ===================================================================
# Runtime requirements
# ===================================================================
@@ -95,12 +100,16 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}
%check
+%if %{defined perl_bootstrap}
+make test
+%else
# Don't run the author tests for EL builds (see above)
%if ! 0%{?rhel}
make test AUTHOR_TESTING=1 RELEASE_TESTING=1
%else
make test RELEASE_TESTING=1
%endif
+%endif
%clean
rm -rf %{buildroot}
@@ -111,6 +120,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/Module::Implementation.3pm*
%changelog
+* Tue Aug 05 2014 Jitka Plesnikova <jplesnik at redhat.com> - 0.07-5
+- Do not run release and author tests on bootstrap
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.07-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the perl-devel
mailing list