From d9f66c663fdedd61d193389edba034be01d07a7f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 3 Nov 2017 14:17:50 +0100 Subject: fix FTBFS from Koschei, add patch for PHP 7.2 from https://github.com/sebastianbergmann/php-code-coverage/pull/554 ignore test failing, know by upstream (travis) --- php-phpunit-php-code-coverage5.spec | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'php-phpunit-php-code-coverage5.spec') diff --git a/php-phpunit-php-code-coverage5.spec b/php-phpunit-php-code-coverage5.spec index 094a793..fec4509 100644 --- a/php-phpunit-php-code-coverage5.spec +++ b/php-phpunit-php-code-coverage5.spec @@ -24,7 +24,7 @@ %global ver_major 5 %global ver_minor 2 %global ver_patch 2 -%global specrel 2 +%global specrel 3 %if %{bootstrap} %global with_tests 0%{?_with_tests:1} %else @@ -48,6 +48,8 @@ Source0: https://github.com/%{gh_vendor}/%{gh_project}/archive/%{gh_commi # RPM specific changes: use system .ttf file Patch0: %{name}-fonts.patch +Patch1: https://patch-diff.githubusercontent.com/raw/sebastianbergmann/php-code-coverage/pull/554.patch + BuildArch: noarch BuildRequires: php-fedora-autoloader-devel >= 1.0.0 %if %{with_tests} @@ -140,6 +142,7 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{ver_major}/autoload.php %prep %setup -q -n %{gh_project}-%{gh_commit} +%patch1 -p1 %if %{with_glyphicons} %patch0 -p0 -b .rpm @@ -187,14 +190,13 @@ define('TEST_FILES_PATH', __DIR__ . '/_files/'); EOF ret=0 -# TODO: PHP 7.2 -# 1) SebastianBergmann\CodeCoverage\Report\Html\HTMLTest::testForBankAccountTest -# count(): Parameter must be an array or an object that implements Countable - -for cmd in php php70 php71; do +for cmd in php php70 php71 php72; do if which $cmd; then - $cmd $EXT -d include_path=.:%{buildroot}%{php_home}:%{php_home} \ - %{_bindir}/phpunit6 --no-coverage --verbose || ret=1 + $cmd $EXT \ + -d include_path=.:%{buildroot}%{php_home}:%{php_home} \ + %{_bindir}/phpunit6 \ + --filter '^((?!(testForClassWithAnonymousFunction|testTextForClassWithAnonymousFunction|testGetLinesToBeIgnored3|testCloverForClassWithAnonymousFunction)).)*$' \ + --no-coverage --verbose || ret=1 fi done exit $ret @@ -211,6 +213,11 @@ exit $ret %changelog +* Fri Nov 3 2017 Remi Collet - 5.2.2-3 +- fix FTBFS from Koschei, add patch for PHP 7.2 from + https://github.com/sebastianbergmann/php-code-coverage/pull/554 +- ignore test failing, know by upstream (travis) + * Fri Aug 4 2017 Remi Collet - 5.2.2-2 - allow phpunit/php-token-stream v2 -- cgit