summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-01-07 08:09:25 +0100
committerRemi Collet <fedora@famillecollet.com>2017-01-07 08:09:25 +0100
commit603979100d4ccf07d3ff7c320c1d1bd6366e651b (patch)
tree3b5dd2bc8073c99c210a34e52380422822d2dcb1
parentf643b6563203b7f6ab1492dc5a46169ec607d754 (diff)
php-twig2: minor
-rw-r--r--php-twig2.spec11
1 files changed, 6 insertions, 5 deletions
diff --git a/php-twig2.spec b/php-twig2.spec
index 64f73fd..1d7bf88 100644
--- a/php-twig2.spec
+++ b/php-twig2.spec
@@ -1,4 +1,4 @@
-# remirepo spec file for php-twig2, from
+# fedora/remirepo spec file for php-twig2, from
#
# Fedora spec file for php-twig
#
@@ -38,6 +38,7 @@ BUildArch: noarch
BuildRequires: php-fedora-autoloader-devel
%if %{with_tests}
# For tests
+BuildRequires: php(language) >= %{php_min_ver}
BuildRequires: php-composer(phpunit/phpunit)
BuildRequires: php-composer(symfony/phpunit-bridge)
BuildRequires: php-composer(symfony/debug)
@@ -122,16 +123,16 @@ require_once '%{phpdir}/Symfony/Component/Debug/autoload.php';
EOF
: Upstream test suite
-%{_bindir}/phpunit --verbose
+RETURN_CODE=0
+%{_bindir}/phpunit --verbose || RETURN_CODE=1
: Upstream tests with SCLs if available
-SCL_RETURN_CODE=0
for SCL in php70 php71; do
if which $SCL; then
- $SCL %{_bindir}/phpunit --verbose || SCL_RETURN_CODE=1
+ $SCL %{_bindir}/phpunit --verbose || RETURN_CODE=1
fi
done
-exit $SCL_RETURN_CODE
+exit $RETURN_CODE
%else
: Tests skipped
%endif