Merge pull request #23924 from woocommerce/update/php-minimum-requirements
Set PHP minimum requirement to 5.6
This commit is contained in:
commit
4b269b08aa
21
.travis.yml
21
.travis.yml
|
@ -19,17 +19,11 @@ php:
|
|||
env:
|
||||
- WP_VERSION=latest WP_MULTISITE=0
|
||||
|
||||
# Additional tests against stable PHP (min recommended version is 5.6) and past supported versions of WP
|
||||
# Additional tests against stable PHP (min version is 5.6)
|
||||
# and code coverage report.
|
||||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- php: 5.3
|
||||
dist: precise
|
||||
env: WP_VERSION=5.1.1 WP_MULTISITE=0 RUN_PHPCS=0
|
||||
- php: 5.2
|
||||
dist: precise
|
||||
env: WP_VERSION=5.1.1 WP_MULTISITE=0 RUN_PHPCS=0
|
||||
- name: "Coding standard check"
|
||||
php: 7.2
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1
|
||||
|
@ -61,19 +55,14 @@ before_script:
|
|||
echo "xdebug.ini does not exist"
|
||||
fi
|
||||
- |
|
||||
# Install WP Test suite, install PHPUnit globally if needed:
|
||||
# Install WP Test suite, install PHPUnit globally:
|
||||
if [[ ! -z "$WP_VERSION" ]]; then
|
||||
bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
|
||||
# PHP 5.2 does not have composer, do not try to run it.
|
||||
if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
|
||||
composer global require "phpunit/phpunit=4.8.*|6.5.*"
|
||||
fi
|
||||
composer global require "phpunit/phpunit=4.8.*|6.5.*"
|
||||
fi
|
||||
- |
|
||||
# Install wpcs globally if needed:
|
||||
if [[ ${RUN_PHPCS} == 1 ]] && [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
|
||||
composer require woocommerce/woocommerce-sniffs
|
||||
fi
|
||||
# Install wpcs globally:
|
||||
composer require woocommerce/woocommerce-sniffs
|
||||
|
||||
script:
|
||||
- bash tests/bin/phpunit.sh
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
<!-- Configs -->
|
||||
<config name="minimum_supported_wp_version" value="4.7" />
|
||||
<config name="testVersion" value="5.2-" />
|
||||
<config name="testVersion" value="5.6-" />
|
||||
|
||||
<!-- Rules -->
|
||||
<rule ref="WooCommerce-Core" />
|
||||
|
|
|
@ -3,6 +3,7 @@ Contributors: automattic, mikejolley, jameskoster, claudiosanches, claudiulodro,
|
|||
Tags: ecommerce, e-commerce, store, sales, sell, shop, cart, checkout, downloadable, downloads, payments, paypal, storefront, stripe, woo commerce, woo
|
||||
Requires at least: 4.7
|
||||
Tested up to: 5.2
|
||||
Requires PHP: 5.6
|
||||
Stable tag: 3.6.0
|
||||
License: GPLv3
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
|
Loading…
Reference in New Issue