mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
enable PHPunit tests for PHP 5.2 and 5.3
This commit is contained in:
21
.travis.yml
21
.travis.yml
@@ -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
|
||||||
|
Reference in New Issue
Block a user