sudo: false

language: php

php:
  - 7.0
  - 7.1
  - nightly

matrix:
  allow_failures:
    - php: nightly
  fast_finish: true

install:
  - composer self-update
  - composer install --no-interaction --prefer-source

script:
  - phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
  - php vendor/bin/php-cs-fixer --diff --dry-run -v fix

after_script:
  - composer require satooshi/php-coveralls dev-master
  - php vendor/bin/coveralls -v
  
cache:
  directories:
    - $HOME/.composer/cache

sudo: false

language: php

php:
  - 7.0
  - 7.1
  - nightly

matrix:
  env:
    - DEPS=lowest
    - DEPS=highest
  allow_failures:
    - php: nightly
  fast_finish: true

install:
  - if [ "$DEPS" = "lowest" ]; then composer install -n --prefer-source --prefer-lowest; fi;
  - if [ "$DEPS" = "highest" ]; then composer install -n --prefer-source; fi;
  - composer show

script:
  - phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
  - php vendor/bin/php-cs-fixer --diff --dry-run -v fix

after_script:
  - composer require satooshi/php-coveralls dev-master
  - php vendor/bin/coveralls -v
  
cache:
  directories:
    - $HOME/.composer/cache

Test with highest and lowest deps
Test with highest and lowest deps
