language: php
php:
  - '5.6'
  - '7.0'
  - '7.1'

before_install:
  - echo "extension = apcu.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

install:
  - yes n | pecl install -f apcu-4.0.11
  - composer install --prefer-dist

before_script:
  - phpenv rehash

script:
  - vendor/bin/phpunit
language: php
php:
  - '5.6'
  - '7.0'
  - '7.1'

matrix:
  include:
    - php: '5.6'
      env: INSTALL_APCU=true
    - php: '7.0'
      env: INSTALL_APCU=false
    - php: '7.1'
      env: INSTALL_APCU=false

before_install:
  - echo "extension = apcu.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

install:
  - if [ $INSTALL_APCU ] then yes n | pecl install -f apcu-4.0.11 fi
  - composer install --prefer-dist

before_script:
  - phpenv rehash

script:
  - vendor/bin/phpunit
Install apcu only on php 5.6
Install apcu only on php 5.6
