From 22cb50fcdab97dc8eb188777dc8a5dc22b468a5f Mon Sep 17 00:00:00 2001 From: uwetews Date: Sun, 9 Dec 2018 04:28:28 +0100 Subject: [PATCH] Revert "Travis fix" This reverts commit 2db843735461296c870f2fb404693364dd8258bd. --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index be92a633..a97db4dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ 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:0:1} = "5"]; then composer require phpunit/phpunit 5.7; fi + - if [[ $TRAVIS_PHP_VERSION < 7.* ]]; then composer require phpunit/phpunit 5.7; fi - if [[ $TRAVIS_PHP_VERSION = 7.* ]]; then composer require phpunit/phpunit 6.4.1; fi - mysql -e "create database IF NOT EXISTS test;" -uroot @@ -38,6 +38,9 @@ install: script: - cd smarty-phpunit - - ../vendor/bin/phpunit ./; - + - if [[ $TRAVIS_PHP_VERSION = 7.* ]]; then + ../vendor/bin/phpunit ./; + else + phpunit ./; + fi