summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json4
-rw-r--r--php-microsoft-tolerant-php-parser.spec27
2 files changed, 18 insertions, 13 deletions
diff --git a/composer.json b/composer.json
index 9579f11..91df816 100644
--- a/composer.json
+++ b/composer.json
@@ -3,10 +3,10 @@
"description": "Tolerant PHP-to-AST parser designed for IDE usage scenarios",
"type": "library",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
- "phpunit/phpunit": "^6.4"
+ "phpunit/phpunit": "^8.5.15"
},
"license": "MIT",
"authors": [
diff --git a/php-microsoft-tolerant-php-parser.spec b/php-microsoft-tolerant-php-parser.spec
index c4e07f5..fabb9b8 100644
--- a/php-microsoft-tolerant-php-parser.spec
+++ b/php-microsoft-tolerant-php-parser.spec
@@ -7,7 +7,7 @@
# Please, preserve the changelog entries
#
# Github
-%global gh_commit 1d76657e3271754515ace52501d3e427eca42ad0
+%global gh_commit 769b9d9b7a735830b26b3c6ffd36188756585c77
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner Microsoft
%global gh_project tolerant-php-parser
@@ -22,8 +22,8 @@
Name: php-%{pk_vendor}-%{pk_name}
-Version: 0.0.23
-Release: 4%{?dist}
+Version: 0.1.0
+Release: 1%{?dist}
Summary: Tolerant PHP-to-AST parser
License: MIT
@@ -35,22 +35,22 @@ Source1: makesrc.sh
BuildArch: noarch
%if %{with_tests}
# For tests
-BuildRequires: php(language) >= 7.0
+BuildRequires: php(language) >= 7.2
BuildRequires: php-reflection
BuildRequires: php-json
BuildRequires: php-spl
BuildRequires: php-tokenizer
# From composer.json, "require-dev": {
-# "phpunit/phpunit": "^6.4"
-BuildRequires: phpunit7
+# "phpunit/phpunit": "^8.5.15"
+BuildRequires: phpunit8
%endif
# Autoloader
BuildRequires: php-fedora-autoloader-devel
# From composer.json, "require": {
-# "php": ">=7.0"
+# "php": ">=7.2"
# php-parser 1.4 for autoloader
-Requires: php(language) >= 7.0
+Requires: php(language) >= 7.2
# From phpcompatifo report for 2.1.0
Requires: php-reflection
Requires: php-json
@@ -97,16 +97,16 @@ rm tests/ParserGrammarTest.php
ret=0
for cmd in php php73 php74 php80; do
if which $cmd; then
- $cmd %{_bindir}/phpunit7 \
+ $cmd %{_bindir}/phpunit8 \
--testsuite invariants \
|| ret=1
- $cmd %{_bindir}/phpunit7 \
+ $cmd %{_bindir}/phpunit8 \
--testsuite grammar \
--filter '^((?!(testOutputTreeClassificationAndLength)).)*$' \
|| ret=1
- $cmd %{_bindir}/phpunit7 \
+ $cmd %{_bindir}/phpunit8 \
--testsuite api\
--filter '^((?!(testOutOfOrderTextEdits|testOverlappingTextEdits)).)*$' \
|| ret=1
@@ -128,6 +128,11 @@ exit $ret
%changelog
+* Mon Jun 28 2021 Remi Collet <remi@remirepo.net> - 0.1.0-1
+- update to 0.1.0
+- raise dependency on PHP 7.2
+- switch to phpunit8
+
* Tue Mar 23 2021 Remi Collet <remi@remirepo.net> - 0.0.23-4
- switch to phpunit7