Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5972715b99 | ||
|
|
b2f3211412 | ||
|
|
961cd61eca |
3 changed files with 22 additions and 9 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -36,3 +36,6 @@ clog
|
||||||
/PHP_CodeSniffer-3.5.3.tgz
|
/PHP_CodeSniffer-3.5.3.tgz
|
||||||
/PHP_CodeSniffer-3.5.4.tgz
|
/PHP_CodeSniffer-3.5.4.tgz
|
||||||
/PHP_CodeSniffer-3.5.5.tgz
|
/PHP_CodeSniffer-3.5.5.tgz
|
||||||
|
/PHP_CodeSniffer-3.5.6.tgz
|
||||||
|
/PHP_CodeSniffer-3.5.8.tgz
|
||||||
|
/PHP_CodeSniffer-3.6.0.tgz
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# spec file for php-pear-PHP-CodeSniffer
|
# spec file for php-pear-PHP-CodeSniffer
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013-2020 Remi Collet
|
# Copyright (c) 2013-2021 Remi Collet
|
||||||
# Copyright (c) 2009-2013 Christof Damian
|
# Copyright (c) 2009-2013 Christof Damian
|
||||||
# Copyright (c) 2006-2009 Konstantin Ryabitsev
|
# Copyright (c) 2006-2009 Konstantin Ryabitsev
|
||||||
#
|
#
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
%global pear_name PHP_CodeSniffer
|
%global pear_name PHP_CodeSniffer
|
||||||
|
|
||||||
Name: php-pear-PHP-CodeSniffer
|
Name: php-pear-PHP-CodeSniffer
|
||||||
Version: 3.5.5
|
Version: 3.6.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: PHP coding standards enforcement tool
|
Summary: PHP coding standards enforcement tool
|
||||||
|
|
||||||
|
|
@ -86,16 +86,17 @@ install -pm 644 %{pear_name}.xml %{buildroot}%{pear_xmldir}
|
||||||
%check
|
%check
|
||||||
cd %{pear_name}-%{version}
|
cd %{pear_name}-%{version}
|
||||||
|
|
||||||
# fix broken pear detection (may use export PHP_CODESNIFFER_PEAR=1 if PR accepted)
|
|
||||||
# https://github.com/squizlabs/PHP_CodeSniffer/pull/2847
|
|
||||||
sed -e '/PHP_CODESNIFFER_PEAR/s/false/true/' -i tests/AllTests.php
|
|
||||||
|
|
||||||
# fails with js: Couldn't read source file
|
# fails with js: Couldn't read source file
|
||||||
rm src/Standards/Generic/Tests/Debug/JSHintUnitTest.*
|
rm src/Standards/Generic/Tests/Debug/JSHintUnitTest.*
|
||||||
|
|
||||||
# Version 3.4.0: Tests: 364, Assertions: 419, Skipped: 3.
|
# Fix current date
|
||||||
|
YEAR=$(date +%Y)
|
||||||
|
sed -e "/@copyright/s/2020/${YEAR}/" \
|
||||||
|
-i src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.*.fixed
|
||||||
|
|
||||||
|
# Version 3.6.0: Tests: 1183, Assertions: 8128, Skipped: 8.
|
||||||
ret=0
|
ret=0
|
||||||
for cmdarg in "php %{phpunit}" php71 php72 php73 php74; do
|
for cmdarg in "php %{phpunit}" php73 php74 php80; do
|
||||||
if which $cmdarg; then
|
if which $cmdarg; then
|
||||||
set $cmdarg
|
set $cmdarg
|
||||||
$1 -d memory_limit=1G ${2:-%{_bindir}/phpunit7} \
|
$1 -d memory_limit=1G ${2:-%{_bindir}/phpunit7} \
|
||||||
|
|
@ -127,6 +128,15 @@ fi
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 9 2021 Remi Collet <remi@remirepo.net> - 3.6.0-1
|
||||||
|
- update to 3.6.0
|
||||||
|
|
||||||
|
* Fri Oct 23 2020 Remi Collet <remi@remirepo.net> - 3.5.8-1
|
||||||
|
- update to 3.5.8
|
||||||
|
|
||||||
|
* Tue Aug 11 2020 Remi Collet <remi@remirepo.net> - 3.5.6-1
|
||||||
|
- update to 3.5.6
|
||||||
|
|
||||||
* Mon Apr 20 2020 Remi Collet <remi@remirepo.net> - 3.5.5-1
|
* Mon Apr 20 2020 Remi Collet <remi@remirepo.net> - 3.5.5-1
|
||||||
- update to 3.5.5
|
- update to 3.5.5
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (PHP_CodeSniffer-3.5.5.tgz) = dad676069122d879b8afb665d661bcd1c810c762b44738765231f8c8cc90d20e7e581690b7e725cdc24438be26fa3185f3556a300798ed5a03cff51f5cbb5d4d
|
SHA512 (PHP_CodeSniffer-3.6.0.tgz) = 09c98ac460c6dc70637d2f4d81a1e46bdf742ee14d0b56032e8dbcaf7a0ff03f3fdb1abdf8144f664a33298cf397c732ba62027bcee41f1f4f740d12fa29f6a8
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue