language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - hhvm

matrix:
  allow_failures:
    - php: hhvm
  include:
    - php: hhvm
      env: DOCTRINE_VERSION='doctrine/dbal=~2.5@dev doctrine/orm=~2.5@dev doctrine/doctrine-bundle=~1.3@dev'

before_script:
  - composer self-update
  - sh -c 'if [ "$DOCTRINE_VERSION" != "" ]; then composer require --no-update $DOCTRINE_VERSION; fi;'
  - composer update --prefer-source

script: ./vendor/bin/phpunit  --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

notifications:
  email:
    - stosh1985@gmail.com

language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - hhvm

matrix:
  allow_failures:
    - php: hhvm
  include:
    - php: hhvm
      env: DOCTRINE_VERSION='doctrine/dbal=~2.5 doctrine/orm=~2.5 doctrine/doctrine-bundle=~1.4'

before_script:
  - composer self-update
  - sh -c 'if [ "$DOCTRINE_VERSION" != "" ]; then composer require --no-update $DOCTRINE_VERSION; fi;'
  - composer update --prefer-source

script: ./vendor/bin/phpunit  --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

notifications:
  email:
    - stosh1985@gmail.com

Remove @dev from requirements, up bundle to 1.4 for hhvm env
Remove @dev from requirements, up bundle to 1.4 for hhvm env
