language: php
php:
  - 5.4
  # - 5.5
  # - 5.6
env:
  - SYMFONY_VERSION="2.3.*"
  - SYMFONY_VERSION="2.4.*"
  - SYMFONY_VERSION="2.5.*"
  - SYMFONY_VERSION="2.6.*"
  - SYMFONY_VERSION="2.7.*@dev"
  # - SYMFONY_VERSION="3.0.*@dev"
before_script:
  - php -d gc_enabled=0 $(which composer) -- require symfony/console:${SYMFONY_VERSION} symfony/framework-bundle:${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"
    # - env: SYMFONY_VERSION="3.0.*@dev"
notifications:
  email:
    - dev@dankempster.co.uk
branches:
  only:
    - develop

language: php
php:
  - 5.4
  # - 5.5
  # - 5.6
env:
  - SYMFONY_VERSION="2.3.*"
  - SYMFONY_VERSION="2.4.*"
  - SYMFONY_VERSION="2.5.*"
  - SYMFONY_VERSION="2.6.*"
  - SYMFONY_VERSION="2.7.*@dev"
  # - SYMFONY_VERSION="3.0.*@dev"
before_script:
  - composer require symfony/symfony:${SYMFONY_VERSION} symfony/framework-bundle:${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"
    # - env: SYMFONY_VERSION="3.0.*@dev"
notifications:
  email:
    - dev@dankempster.co.uk
branches:
  only:
    - develop

Fix composer command in Travis CI config
Fix composer command in Travis CI config
