Bump minimum PHP version to 5.6, update travis to remove 5.2 and 5.3 tests.

This commit is contained in:
Gerhard 2019-06-13 11:28:18 +02:00
parent 9eca72849d
commit a2953da9ad
2 changed files with 6 additions and 14 deletions

View File

@ -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

View File

@ -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