sudo: false

language: php

matrix:
  fast_finish: true
  include:
    - php: 5.6
      env:
        EXECUTE_CS_CHECK=true
    - php: 7.0
        EXECUTE_COVERAGE=true
    - php: hhvm
  allow_failures:
    - php: hhvm

notifications:
  irc: "irc.freenode.org#apigility-dev"
  email: false

before_install:
  - if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
  - composer self-update

install:
  - travis_retry composer install --no-interaction --ignore-platform-reqs --prefer-source --dev

script:
  - mkdir -p build/logs
  - ./vendor/bin/phpunit
  - if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs --standard=PSR2 --ignore=test/Bootstrap.php src test; fi

sudo: false

language: php

matrix:
  fast_finish: true
  include:
    - php: 5.6
      env:
        EXECUTE_CS_CHECK=true
        EXECUTE_COVERAGE=true
    - php: 7
    - php: hhvm
  allow_failures:
    - php: hhvm

notifications:
  irc: "irc.freenode.org#apigility-dev"
  email: false

before_install:
  - if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
  - composer self-update

install:
  - travis_retry composer install --no-interaction --ignore-platform-reqs --prefer-source --dev

script:
  - mkdir -p build/logs
  - ./vendor/bin/phpunit
  - if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs --standard=PSR2 --ignore=test/Bootstrap.php src test; fi

Move coverage to php 5.6
Move coverage to php 5.6
