enable PHPunit tests for PHP 5.2 and 5.3

This commit is contained in:
Uwe Tews
2017-10-18 13:39:19 +02:00
parent e4f41adf5a
commit 19ebab9e4a
2 changed files with 13 additions and 8 deletions

View File

@@ -5,14 +5,18 @@ sudo: true
dist: trusty dist: trusty
php: matrix:
- 5.4 include:
- 5.5 - php: 5.2
- 5.6 dist: precise
- 7.0 - php: 5.3
- 7.1 dist: precise
- 7.2 - php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
services: services:
- memcached - memcached
@@ -21,6 +25,7 @@ services:
before_script: 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.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.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 - if [[ $TRAVIS_PHP_VERSION = 7.* ]]; then composer require phpunit/phpunit 6.4.1; fi
- composer install - composer install
- mysql -e "create database IF NOT EXISTS test;" -uroot - mysql -e "create database IF NOT EXISTS test;" -uroot