summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-03-13 15:15:11 +0100
committerRemi Collet <fedora@famillecollet.com>2017-03-13 15:15:11 +0100
commit32a15cdd3bb2b2e86efd3feff8ff84aa93f67405 (patch)
treea29d12e2bbdd751f6f3cbc3eaa6d47d31b2a758f
parent0e3ffb5bccaad95c735f9f9e83cff2deeb3a196b (diff)
wip
-rw-r--r--php-tecnickcom-tc-lib-file.spec13
1 files changed, 11 insertions, 2 deletions
diff --git a/php-tecnickcom-tc-lib-file.spec b/php-tecnickcom-tc-lib-file.spec
index b43dee6..56d958e 100644
--- a/php-tecnickcom-tc-lib-file.spec
+++ b/php-tecnickcom-tc-lib-file.spec
@@ -28,7 +28,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%if %{with_tests}
# For tests
-BuildRequires: php-composer(phpunit/phpunit)
+%if 0%{?fedora} >= 26
+%global phpunit %{_bindir}/phpunit6
+%else
+%global phpunit %{_bindir}/phpunit
+%endif
+BuildRequires: %{phpunit}
BuildRequires: php(language) >= 5.4
BuildRequires: php-curl
BuildRequires: php-pcre
@@ -85,8 +90,11 @@ EOF
sed -i 's:src:File:g' -i test/DirTest.php
+%{phpunit} --no-coverage --verbose
+
+#remirepo:12
ret=0
-for cmd in php56 php; do
+for cmd in php56; do
if which $cmd; then
$cmd %{_bindir}/phpunit --no-coverage --verbose || ret=1
fi
@@ -120,6 +128,7 @@ rm -rf %{buildroot}
%changelog
* Sun Feb 12 2017 Remi Collet <remi@remirepo.net> - 1.6.5-1
- update to 1.6.5 (no change)
+- use phpunit6 on F26+
* Mon Feb 6 2017 Remi Collet <remi@remirepo.net> - 1.6.4-1
- update to 1.6.4 (no change)