From 65f08916935df723b36bed1a3c203c7657c980be Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 18 Oct 2018 11:09:53 +0200 Subject: [PATCH] updating phpUnit versions we previously used 6.3 for everything but PHP 5.6, now we (try) to use latest 6 for 7.0, and latest 7 for 7.1+ incl. master who errors with 6.3 --- .travis.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index efeef104fc..99479ca595 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,13 +31,22 @@ before_script: yes "" | pecl install igbinary; echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; phpenv config-rm xdebug.ini; - composer require 'phpunit/phpunit:~5.7'; ;; "7"|"7.0"|"7.1"|"7.2"|"7.3"|"master") yes "" | pecl install apcu; echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; phpenv config-rm xdebug.ini; - composer require 'phpunit/phpunit:~6.3'; + ;; + esac + - case $(phpenv version-name) in + "5.6") + composer require 'phpunit/phpunit:~5.7'; + ;; + "7") + composer require 'phpunit/phpunit:~6'; + ;; + *) + composer require 'phpunit/phpunit:~7'; ;; esac #- php -m