use to phpunit7
This commit is contained in:
parent
0aca1c9e99
commit
2f825b3d03
1 changed files with 8 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# remirepo/fedora spec file for php-phpdocumentor-reflection-common2
|
||||
#
|
||||
# Copyright (c) 2017-2019 Remi Collet, Shawn Iwinski
|
||||
# Copyright (c) 2017-2021 Remi Collet, Shawn Iwinski
|
||||
#
|
||||
# License: MIT
|
||||
# http://opensource.org/licenses/MIT
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
Name: php-%{composer_vendor}-%{composer_project}%{major}
|
||||
Version: %{github_version}
|
||||
Release: 3%{?github_release}%{?dist}
|
||||
Release: 4%{?github_release}%{?dist}
|
||||
Summary: Common reflection classes used by phpdocumentor
|
||||
|
||||
Group: Development/Libraries
|
||||
|
|
@ -44,7 +44,7 @@ BuildArch: noarch
|
|||
%if %{with_tests}
|
||||
## composer.json
|
||||
BuildRequires: php(language) >= %{php_min_ver}
|
||||
BuildRequires: phpunit6
|
||||
BuildRequires: phpunit7
|
||||
## phpcompatinfo (computed from version 2.0.0)
|
||||
BuildRequires: php-pcre
|
||||
BuildRequires: php-spl
|
||||
|
|
@ -91,10 +91,10 @@ touch vendor/autoload.php
|
|||
|
||||
: Upstream tests
|
||||
RETURN_CODE=0
|
||||
for PHP_EXEC in php php72 php73 php74 php80; do
|
||||
for PHP_EXEC in php php73 php74 php80; do
|
||||
if which $PHP_EXEC; then
|
||||
$PHP_EXEC -d auto_prepend_file=$BOOTSTRAP \
|
||||
%{_bindir}/phpunit6 --verbose || RETURN_CODE=1
|
||||
%{_bindir}/phpunit7 --no-coverage --verbose || RETURN_CODE=1
|
||||
fi
|
||||
done
|
||||
exit $RETURN_CODE
|
||||
|
|
@ -120,6 +120,9 @@ exit $RETURN_CODE
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Mar 23 2021 Remi Collet <remi@remirepo.net> - 2.2.0-4
|
||||
- switch to phpunit7
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue