switch to phpunit7
This commit is contained in:
parent
ee0cadb2c8
commit
fc82303468
1 changed files with 14 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# remirepo/fedora spec file for php-microsoft-tolerant-php-parser
|
||||
#
|
||||
# Copyright (c) 2018-2020 Remi Collet
|
||||
# Copyright (c) 2018-2021 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
Name: php-%{pk_vendor}-%{pk_name}
|
||||
Version: 0.0.23
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Tolerant PHP-to-AST parser
|
||||
|
||||
License: MIT
|
||||
|
|
@ -42,7 +42,7 @@ BuildRequires: php-spl
|
|||
BuildRequires: php-tokenizer
|
||||
# From composer.json, "require-dev": {
|
||||
# "phpunit/phpunit": "^6.4"
|
||||
BuildRequires: phpunit6 >= 6.4
|
||||
BuildRequires: phpunit7
|
||||
%endif
|
||||
# Autoloader
|
||||
BuildRequires: php-fedora-autoloader-devel
|
||||
|
|
@ -88,20 +88,24 @@ cp -pr src %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}
|
|||
sed -e 's:src/bootstrap.php:%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php:' \
|
||||
-i phpunit.xml
|
||||
|
||||
# test using BaseTestListener dropped in phpunit7
|
||||
rm tests/LexicalGrammarTest.php
|
||||
rm tests/ParserGrammarTest.php
|
||||
|
||||
: Run the test suite
|
||||
ret=0
|
||||
for cmd in php php72 php73 php74; do
|
||||
for cmd in php php73 php74 php80; do
|
||||
if which $cmd; then
|
||||
$cmd %{_bindir}/phpunit6 \
|
||||
$cmd %{_bindir}/phpunit7 \
|
||||
--testsuite invariants \
|
||||
|| ret=1
|
||||
|
||||
$cmd %{_bindir}/phpunit6 \
|
||||
$cmd %{_bindir}/phpunit7 \
|
||||
--testsuite grammar \
|
||||
--filter '^((?!(testOutputTreeClassificationAndLength)).)*$' \
|
||||
|| ret=1
|
||||
|
||||
$cmd %{_bindir}/phpunit6 \
|
||||
$cmd %{_bindir}/phpunit7 \
|
||||
--testsuite api\
|
||||
--filter '^((?!(testOutOfOrderTextEdits|testOverlappingTextEdits)).)*$' \
|
||||
|| ret=1
|
||||
|
|
@ -123,6 +127,9 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Mar 23 2021 Remi Collet <remi@remirepo.net> - 0.0.23-4
|
||||
- switch to phpunit7
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.23-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue