language: php

branches:
  # Only test the master branch and semantic version tags.
  only:
    - master
    - /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/

php:
  - 5.5
  - 5.6
  - 7.0

sudo: false

env:
  global:
    - TERMINUS_TEST_MODE=1

before_script:
  - set -ex
  - composer install --no-interaction --prefer-dist

script:
  - vendor/bin/phpunit -c tests/config/phpunit.xml.dist --coverage-clover tests/logs/clover.xml
  - phpenv config-rm xdebug.ini # XDebug is needed for code coverage, but makes things slow. It's enabled by default in Travis, we disable it here post-coverage run for speedy builds.
  - ./scripts/test.sh

after_success:
  - php vendor/bin/coveralls -v -c tests/config/coveralls.xml

notifications:
  email:
    on_success: never

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

language: php

branches:
  # Only test the master branch and semantic version tags.
  only:
    - master
    - /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/

php:
  - 5.5
  - 5.6
  - 7.0

sudo: false

env:
  global:
    - TERMINUS_TEST_MODE=1

before_script:
  - set -ex
  - composer install --no-interaction --prefer-dist

script:
  - vendor/bin/phpunit -c tests/config/phpunit.xml.dist --coverage-clover tests/logs/clover.xml
  - phpenv config-rm xdebug.ini # XDebug is needed for code coverage, but makes things slow. It's enabled by default in Travis, we disable it here post-coverage run for speedy builds.
  - ./scripts/test.sh

after_success:
    - if [ $(phpenv version-name) = "7.0" ]; then php vendor/bin/coveralls -v -c tests/config/coveralls.xml; fi

notifications:
  email:
    on_success: never

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

Set code coverage to calculate for PHP 7.0 only
Set code coverage to calculate for PHP 7.0 only
