summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--composer.json6
-rw-r--r--phinx.spec21
3 files changed, 20 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index 1ab5c4f..01f0400 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,7 @@
+clog
package-*.xml
*.tgz
+*.tar.bz2
*.tar.gz
*.tar.xz
*.tar.xz.asc
diff --git a/composer.json b/composer.json
index 8923623..71b39b0 100644
--- a/composer.json
+++ b/composer.json
@@ -34,7 +34,7 @@
"require-dev": {
"ext-json": "*",
"ext-pdo": "*",
- "phpunit/phpunit": "^8.5",
+ "phpunit/phpunit": "^8.5|^9.3",
"sebastian/comparator": ">=1.2.3",
"cakephp/cakephp-codesniffer": "^3.0",
"symfony/yaml": "^3.4|^4.0|^5.0"
@@ -59,8 +59,8 @@
"@test",
"@cs-check"
],
- "cs-check": "phpcs",
- "cs-fix": "phpcbf",
+ "cs-check": "phpcs -np app/ src/ tests/",
+ "cs-fix": "phpcbf -np app/ src/ tests/",
"stan": "phpstan analyse src/",
"stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^0.12 && mv composer.backup composer.json",
"test": "phpunit --colors=always"
diff --git a/phinx.spec b/phinx.spec
index b35382c..508995b 100644
--- a/phinx.spec
+++ b/phinx.spec
@@ -1,6 +1,6 @@
# remirepo/fedora spec file for phinx
#
-# Copyright (c) 2016-2020 Remi Collet
+# Copyright (c) 2016-2021 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -10,7 +10,7 @@
# For compatibility with SCL
%undefine __brp_mangle_shebangs
-%global gh_commit 05902f4a90790ce9db195954e608d5a43d4d6a7d
+%global gh_commit 9457e3879b0abc02a4022941a6a535141889432e
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner robmorgan
#global gh_date 20150820
@@ -19,7 +19,7 @@
%bcond_without tests
Name: %{gh_project}
-Version: 0.12.4
+Version: 0.12.5
Release: 1%{?gh_date?%{gh_date}git%{gh_short}}%{?dist}
Summary: Manage the database migrations for your PHP app
@@ -56,13 +56,18 @@ BuildRequires: php-spl
# For tests, from composer.json "require-dev": {
# "ext-json": "*",
# "ext-pdo": "*",
-# "phpunit/phpunit": ^8.5",
+# "phpunit/phpunit": ^8.5|^9.3",
# "sebastian/comparator": ">=1.2.3",
# "cakephp/cakephp-codesniffer": "^3.0",
# "symfony/yaml": "^3.4|^4.0|^5.0"
+%if 0%{?fedora} >= 32 || 0%{?rhel} >= 9
+%global phpunit %{_bindir}/phpunit9
+BuildRequires: phpunit9
+%else
%global phpunit %{_bindir}/phpunit8
BuildRequires: phpunit8
%endif
+%endif
# For autoloader
BuildRequires: php-composer(fedora/autoloader)
@@ -171,10 +176,10 @@ sed -e '/_ENABLED/s/true/false/;/SQLITE_ENABLED/s/false/true/' \
: Run upstream test suite
ret=0
-for cmd in "php %{phpunit}" php72 php73 php74; do
+for cmd in "php %{phpunit}" "php72 %{_bindir}/phpunit8" php73 php74 php80; do
if which $cmd; then
set $cmd
- $1 ${2:-%{_bindir}/phpunit8} \
+ $1 ${2:-%{_bindir}/phpunit9} \
--no-coverage || ret=1
fi
done
@@ -195,6 +200,10 @@ exit $ret
%changelog
+* Mon Jan 25 2021 Remi Collet <remi@remirepo.net> - 0.12.5-1
+- update to 0.12.5
+- switch to phpunit9
+
* Wed Aug 19 2020 Remi Collet <remi@remirepo.net> - 0.12.4-1
- update to 0.12.4
- drop dependency on cakephp/collection