From a2953da9adef07795d452369b32cb39412edfb91 Mon Sep 17 00:00:00 2001 From: Gerhard Date: Thu, 13 Jun 2019 11:28:18 +0200 Subject: [PATCH] Bump minimum PHP version to 5.6, update travis to remove 5.2 and 5.3 tests. --- .travis.yml | 19 +++++-------------- readme.txt | 1 + 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index bfdd66de349..e4b206f61aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,15 +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 - - php: 5.2 - dist: precise - name: "Coding standard check" php: 7.2 env: WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 @@ -59,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 diff --git a/readme.txt b/readme.txt index a9e3d3d6bfb..16da857c2c8 100644 --- a/readme.txt +++ b/readme.txt @@ -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