enable PHPunit tests for PHP 7.2 and hhvm

This commit is contained in:
Uwe Tews
2017-10-09 22:18:11 +02:00
parent 0bf112c2bb
commit 64ed85a954

View File

@@ -11,7 +11,8 @@ php:
- 5.6 - 5.6
- 7.0 - 7.0
- 7.1 - 7.1
- 7.2
- hhvm
services: services:
- memcached - memcached
@@ -20,16 +21,19 @@ 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} == "7.1" ]; 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
before_install:
- phpenv config-rm xdebug.ini || return 0
install: install:
- git clone --depth=50 --branch=master git://github.com/smarty-php/smarty-phpunit.git - git clone --depth=50 --branch=master git://github.com/smarty-php/smarty-phpunit.git
script: script:
- cd smarty-phpunit - cd smarty-phpunit
- if [[ $TRAVIS_PHP_VERSION = 7.1 || $TRAVIS_PHP_VERSION = nightly ]]; then - if [[ $TRAVIS_PHP_VERSION = 7.* ]]; then
../vendor/bin/phpunit ./; ../vendor/bin/phpunit ./;
else else
phpunit ./; phpunit ./;