From a66e27efc41b8efb0108b03618e1195a834129f6 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Thu, 28 Mar 2019 21:11:29 +0000 Subject: [PATCH] PHP: Finish updating PHP Minimum version Previous [44982] and [44950]. This bumps the minimum version down slightly based on some research into the usage of php 5.6. This also brings the recommended version in line with https://wordpress.org/about/requirements/ . The travis matrix is also being reduced in order to speed up builds. This is a hard break. PHP 5.2 - 5.5 we are never ever, ever, getting back together. You go talk to your friends, talk to my friends, talk to me, But we are never ever, ever, ever getting back together. Props DD32, afergen for research. Fixes #46594. git-svn-id: https://develop.svn.wordpress.org/trunk@45058 602fd350-edb4-49c9-b593-d223f7449a82 --- .travis.yml | 24 +++--------------------- src/readme.html | 4 ++-- src/wp-includes/version.php | 2 +- 3 files changed, 6 insertions(+), 24 deletions(-) diff --git a/.travis.yml b/.travis.yml index 21db732da4..0e186dc8c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,20 +26,8 @@ matrix: - php: 7.0 env: WP_TEST_REPORTER=true - php: 5.6 - - php: 5.5 - - php: 5.4 - - php: 5.3 - dist: precise - - php: 5.2 - dist: precise - php: nightly allow_failures: - - php: 5.5 - - php: 5.4 - - php: 5.3 - dist: precise - - php: 5.2 - dist: precise - php: 7.4snapshot - php: nightly fast_finish: true @@ -68,10 +56,8 @@ before_script: fi - | # Export Composer's global bin dir to PATH, but not on PHP 5.2: - if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then - composer config --list --global - export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }` - fi + composer config --list --global + export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }` - | # Install the specified version of PHPUnit depending on the PHP version: if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then @@ -84,14 +70,10 @@ before_script: echo "Using PHPUnit 6.x" travis_retry composer global require "phpunit/phpunit:^6" ;; - 5.6|5.5|5.4|5.3) + 5.6) echo "Using PHPUnit 4.x" travis_retry composer global require "phpunit/phpunit:^4" ;; - 5.2) - # Do nothing, use default PHPUnit 3.6.x - echo "Using default PHPUnit, hopefully 3.6" - ;; *) echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION" exit 1 diff --git a/src/readme.html b/src/readme.html index 10dcfd1c04..37e1a8aee1 100644 --- a/src/readme.html +++ b/src/readme.html @@ -52,13 +52,13 @@

System Requirements

Recommendations