language: php
php:
  - 5.4
env:
  - SYMFONY_VERSION="2.3.*"
  - SYMFONY_VERSION="2.6.*"
  - SYMFONY_VERSION="2.7.*@dev"
  # - SYMFONY_VERSION="3.0.*@dev"
before_script:
  - composer require symfony/symfony:${SYMFONY_VERSION} --prefer-dist
script:
  - php ./vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover
after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --access-token="80b65a15a783f3ca91af2635f701052e94179ebf84aad0a031dcc90dddd30394" --format=php-clover coverage.clover
matrix:
  allow_failures:
    - env: SYMFONY_VERSION="2.7.*@dev"

  fast_finish: true

notifications:
  email:
    - dev@dankempster.co.uk

branches:
  only:
    - develop
    - master

language: php
php:
  - 5.4
env:
  - SYMFONY_VERSION="2.3.*"
  - SYMFONY_VERSION="2.6.*"
  # - SYMFONY_VERSION="3.0.*@dev"
before_script:
  # - export COMPOSER_PATH=$(which composer)
  # - echo ${COMPOSER_PATH}
  # - php -d zend.gc_enabled=0 ${COMPOSER_PATH} -- require symfony/console:${SYMFONY_VERSION} symfony/framework-bundle:${SYMFONY_VERSION} --prefer-dist
  - composer require symfony/symfony:${SYMFONY_VERSION} --prefer-dist
script:
  # - phpunit -c phpunit.dist.xml
  - php ./vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover
after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --access-token="80b65a15a783f3ca91af2635f701052e94179ebf84aad0a031dcc90dddd30394" --format=php-clover coverage.clover
matrix:
  # Build with PHP 5.5 and Symfony LTS
  include:
    - php: 5.5
      env: SYMFONY_VERSION="2.3.*"
    - php: 5.6
      env: SYMFONY_VERSION="2.7.*@dev"

  # Test the latest PHP and Symfony Next
  allow_failures:
    - env: SYMFONY_VERSION="2.7.*@dev"


  fast_finish: true

notifications:
  email:
    - dev@dankempster.co.uk

branches:
  only:
    - develop
    - master

Reduce the number of builds performed by Travis CI to (I think) the essentials.
Reduce the number of builds performed by Travis CI to (I think) the essentials.

Travis CI (should) perform the following builds
- PHP 5.4 / Symfony 2.3
- PHP 5.5 / Symfony 2.3
- PHP 5.4 / Symfony 2.6
- PHP 5.6 / Symfony 2.7@dev (allowed failure)
