language: php
php:
  - 7.1
  - 7.2
  - master

env:
  - dependencies=lowest
  - dependencies=highest

matrix:
  allow_failures:
    - php: master
      env: dependencies=lowest
    - php: master
      env: dependencies=highest

before_script:
  - phpenv config-rm xdebug.ini
  - composer self-update
  - if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --no-interaction; fi;
  - if [ "$dependencies" = "highest" ]; then composer update --no-interaction; fi;

script:
  - vendor/bin/phing
  - >
    wget https://github.com/maglnet/ComposerRequireChecker/releases/download/0.2.1/composer-require-checker.phar
    && php composer-require-checker.phar check --config-file=$PWD/build/composer-require-checker.json composer.json

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

language: php
php:
  - 7.1
  - 7.2
  - master

env:
  - dependencies=lowest
  - dependencies=highest

matrix:
  allow_failures:
    - php: master
      env: dependencies=lowest
    - php: master
      env: dependencies=highest

before_script:
  - phpenv config-rm xdebug.ini
  - composer self-update
  - if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --no-interaction; fi;
  - if [ "$dependencies" = "highest" ]; then composer update --no-interaction; fi;

script:
  - vendor/bin/phing
  - >
    wget https://github.com/maglnet/ComposerRequireChecker/releases/download/0.2.1/composer-require-checker.phar
    && php composer-require-checker.phar check --config-file=$PWD/build/composer-require-checker.json composer.json

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

Add tmp/ directory to Travis cache
Add tmp/ directory to Travis cache
