Add PHPUnit 4.8 to test matrix

This commit is contained in:
chinpei215 2017-03-11 10:22:41 +09:00
parent 70926fbb7f
commit 19e95e2fb2

View file

@ -9,7 +9,10 @@ php:
- 7.1 - 7.1
env: env:
- DB=mysql matrix:
- DB=mysql
global:
- PHPUNIT=3.7.33
services: services:
- memcached - memcached
@ -17,6 +20,9 @@ services:
matrix: matrix:
fast_finish: true fast_finish: true
include: include:
- php: 5.3
env: DB=mysql PHPUNIT=4.8.35
- php: 5.4 - php: 5.4
env: DB=pgsql env: DB=pgsql
@ -28,8 +34,8 @@ matrix:
before_script: before_script:
- sh -c "composer global require 'phpunit/phpunit=3.7.33'" - composer global require "phpunit/phpunit=$PHPUNIT"
- sh -c "ln -s ~/.composer/vendor/phpunit/phpunit/PHPUnit ./vendors/PHPUnit" - echo "require_once '$HOME/.composer/vendor/autoload.php';" >> app/Config/bootstrap.php
- sudo locale-gen de_DE - sudo locale-gen de_DE
- sudo locale-gen es_ES - sudo locale-gen es_ES
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi" - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"