From 19ebab9e4a73b643e7bd137905a6e4e7025289c1 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Wed, 18 Oct 2017 13:39:19 +0200 Subject: [PATCH] enable PHPunit tests for PHP 5.2 and 5.3 --- .travis.yml | 21 +++++++++++++-------- myconfig.ini => error_reporting.ini | 0 2 files changed, 13 insertions(+), 8 deletions(-) rename myconfig.ini => error_reporting.ini (100%) diff --git a/.travis.yml b/.travis.yml index f7dfe1b4..871e4466 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,14 +5,18 @@ sudo: true dist: trusty -php: - - 5.4 - - 5.5 - - 5.6 - - 7.0 - - 7.1 - - 7.2 - +matrix: + include: + - php: 5.2 + dist: precise + - php: 5.3 + dist: precise + - php: 5.4 + - php: 5.5 + - php: 5.6 + - php: 7.0 + - php: 7.1 + - php: 7.2 services: - memcached @@ -21,6 +25,7 @@ services: before_script: - if [ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]; then travis_retry composer --prefer-source --dev install; fi - if [ ${TRAVIS_PHP_VERSION:0:3} <= "5.6" ]; then phpenv config-add travis.ini; fi + - if [ ${TRAVIS_PHP_VERSION:0:3} >= "5.3" ]; then phpenv config-add error_reporting.ini; fi - if [[ $TRAVIS_PHP_VERSION = 7.* ]]; then composer require phpunit/phpunit 6.4.1; fi - composer install - mysql -e "create database IF NOT EXISTS test;" -uroot diff --git a/myconfig.ini b/error_reporting.ini similarity index 100% rename from myconfig.ini rename to error_reporting.ini