summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-11-23 10:46:45 +0100
committerRemi Collet <fedora@famillecollet.com>2016-11-23 10:46:45 +0100
commit8a43bfde119faae925f258ac5faa5033a66d4df8 (patch)
tree8f0981cbf5f98f08154a5827bca2e7372f886e2b
parent44081a7d4e38edf2f1aa9c4930d9e7f59cc76b4d (diff)
php-phpunit-PHP-CodeCoverage: fix FTBFS wwith 7.1
-rw-r--r--php-phpunit-PHP-CodeCoverage-dev.spec13
1 files changed, 9 insertions, 4 deletions
diff --git a/php-phpunit-PHP-CodeCoverage-dev.spec b/php-phpunit-PHP-CodeCoverage-dev.spec
index 3beb325..1fb2c09 100644
--- a/php-phpunit-PHP-CodeCoverage-dev.spec
+++ b/php-phpunit-PHP-CodeCoverage-dev.spec
@@ -18,7 +18,7 @@
%global pear_channel pear.phpunit.de
%global major 4.0
%global minor 2
-%global specrel 1
+%global specrel 2
%if %{bootstrap}
%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
%else
@@ -146,9 +146,9 @@ if which php56; then
--configuration build || ret=1
run=1
fi
-if which php70; then
- # php 7.1 issue with 66.666666666667,1 vs 66.666666666666657,1
- php70 $EXT \
+if which php71; then
+ php71 $EXT \
+ -d serialize_precision=14 \
-d include_path=.:%{buildroot}%{php_home}:%{php_home} \
%{_bindir}/phpunit \
--configuration build || ret=1
@@ -156,6 +156,7 @@ if which php70; then
fi
if [ $run -eq 0 ]; then
%{_bindir}/php $EXT \
+ -d serialize_precision=14 \
-d include_path=.:%{buildroot}%{php_home}:%{php_home} \
%{_bindir}/phpunit \
--configuration build \
@@ -187,6 +188,10 @@ fi
%changelog
+* Wed Nov 23 2016 Remi Collet <remi@fedoraproject.org> - 4.0.2-2
+- set serialize_precision=14 for the test suite
+ to fix FTBFS with PHP 7.1
+
* Tue Nov 1 2016 Remi Collet <remi@fedoraproject.org> - 4.0.2-1
- Update to 4.0.2
- switch to fedora-autoloader