language: php
dist: trusty
sudo: false

cache:
  directories:
    - $HOME/.composer/cache

php:
  - 5.6
  - 7.0
  - 7.1

notifications:
  irc:
    use_notice: true
    skip_join: true
    channels: ["irc.freenode.org#imbo"]

branches:
  only:
    - develop
    - master

services:
  - memcached

before_install:
  - |
    # Install different version of APCu for different PHP-versions
    if [[ $TRAVIS_PHP_VERSION = 7.* ]]; then
      printf "\n" | pecl install apcu
    else
      printf "\n" | pecl install -f apcu-4.0.11
    fi
  - printf "\n" | pecl install memcached
  - php -m

before_script:
  - echo 'apc.enable_cli=On' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - phpenv config-add .travis-php.ini
  - composer self-update
  - composer lint
  - composer install --prefer-dist

script:
  - ./vendor/bin/phpunit --verbose

language: php
dist: trusty
sudo: false

cache:
  directories:
    - $HOME/.composer/cache

php:
  - 5.6
  - 7.0
  - 7.1

notifications:
  irc:
    use_notice: true
    skip_join: true
    channels: ["irc.freenode.org#imbo"]

branches:
  only:
    - develop
    - master

services:
  - memcached

before_install:
  - |
    if [[ $TRAVIS_PHP_VERSION = 7.* ]]; then
      printf "\n" | pecl install apcu
      printf "\n" | pecl install memcached
    else
      printf "\n" | pecl install -f apcu-4.0.11
      printf "\n" | pecl install -f memcached-2.2.0
    fi
  - php -m

before_script:
  - echo 'apc.enable_cli=On' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - composer self-update
  - composer lint
  - composer install --prefer-dist

script:
  - ./vendor/bin/phpunit --verbose

Install specific versions of memcached as well, and remove reference to the ini file that has been deleted
Install specific versions of memcached as well, and remove reference to the ini file that has been deleted
