diff --git a/php-swiftmailer.spec b/php-swiftmailer.spec index 92a7d67..32e9229 100644 --- a/php-swiftmailer.spec +++ b/php-swiftmailer.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-swiftmailer # -# Copyright (c) 2016-2018 Remi Collet +# Copyright (c) 2016-2020 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -120,14 +120,18 @@ cat << EOF | tee tests/acceptance.conf.php define('SWIFT_TMP_DIR', '$TMPDIR'); EOF -: Run upstream test suite -ret=0 -for cmd in php php70 php71 php72 php73; do - if which $cmd; then - $cmd %{_bindir}/phpunit --exclude smoke --verbose || ret=1 - fi -done -rm -r $TMPDIR +if [ $(php -r 'echo PHP_VERSION_ID;') -lt 70400 ]; then + : Run upstream test suite + ret=0 + for cmd in php php72 php73; do + if which $cmd; then + $cmd %{_bindir}/phpunit --exclude smoke --verbose || ret=1 + fi + done + rm -r $TMPDIR +else + : Skip test suite as mockery is broken for 7.4 +fi exit $ret %endif @@ -142,6 +146,9 @@ exit $ret %changelog +* Tue Feb 4 2020 Remi Collet - 5.4.12-4 +- disable test suite with PHP 7.4 + * Thu Jan 30 2020 Fedora Release Engineering - 5.4.12-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild