[packages/composer] always run self-test
glen
glen at pld-linux.org
Sun Aug 11 20:54:01 CEST 2019
commit 4c214cabf91e13b2855acd2076159078e9526965
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Sun Aug 11 21:52:41 2019 +0300
always run self-test
composer.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/composer.spec b/composer.spec
index b10795a..923e74b 100644
--- a/composer.spec
+++ b/composer.spec
@@ -22,10 +22,10 @@ URL: https://getcomposer.org/
BuildRequires: php-devel
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.673
-%if %{with tests}
# instead of filling duplicate deps for running tests,
# update composer version that have neccessary runtime dependencies
BuildRequires: composer >= 1.7.0
+%if %{with tests}
BuildRequires: git-core
BuildRequires: phpab
BuildRequires: phpunit >= 4.8
@@ -108,6 +108,9 @@ ln -s src/Composer/res
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%build
+# always run self-test
+%{__php} ./bin/composer diagnose
+
%if %{with tests}
phpab -n -o src/bootstrap.php -e '*/Fixtures/*' src/ tests/
echo "require 'src/Composer/autoload.php';" >> src/bootstrap.php
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/composer.git/commitdiff/4c214cabf91e13b2855acd2076159078e9526965
More information about the pld-cvs-commit
mailing list