language: php

php:
  - "7.3"
  - "7.2"
  - "7.1"
  - "7.0"
  - "5.6"

services:
  - redis-server
  - memcached
  - mysql

branches:
  only:
    - master
    - develop

before_script:
  - echo ${TRAVIS_PHP_VERSION}
  - php -i
  - echo -e "[mysql]\nuser=travis\nserver=127.0.0.1\ndb=cachettest" > .cachettestrc
  - mysql -u travis -e 'drop database if exists cachettest'
  - mysql -u travis -e 'create database if not exists cachettest'
  - test -f test/setup-${TRAVIS_PHP_VERSION}.sh && test/setup-${TRAVIS_PHP_VERSION}.sh
  - test -f test/php-${TRAVIS_PHP_VERSION}.ini && phpenv config-add test/php-${TRAVIS_PHP_VERSION}.ini || phpenv config-add test/php.ini
  - composer install

matrix:
  allow_failures:
    - php: hhvm


language: php

php:
  - "7.2"
  - "7.1"
  - "7.0"
  - "5.6"

services:
  - redis-server
  - memcached
  - mysql

branches:
  only:
    - master
    - develop

before_script:
  - echo ${TRAVIS_PHP_VERSION}
  - php -i
  - echo -e "[mysql]\nuser=travis\nserver=127.0.0.1\ndb=cachettest" > .cachettestrc
  - mysql -u travis -e 'drop database if exists cachettest'
  - mysql -u travis -e 'create database if not exists cachettest'
  - test -f test/setup-${TRAVIS_PHP_VERSION}.sh && test/setup-${TRAVIS_PHP_VERSION}.sh
  - test -f test/php-${TRAVIS_PHP_VERSION}.ini && phpenv config-add test/php-${TRAVIS_PHP_VERSION}.ini || phpenv config-add test/php.ini
  - composer install

matrix:
  allow_failures:
    - php: hhvm


Disable 7.3 for now which fails for no obvious reason
Disable 7.3 for now which fails for no obvious reason
