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

matrix:
  fast_finish: true
  allow_failures:
    - php: hhvm

before_script:
#  - echo 'date.timezone = "UTC"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - travis_retry rm -rf vendor composer.lock
  - travis_retry composer self-update
  - travis_retry composer install --prefer-source --no-interaction --optimize-autoloader

script:
  - ./vendor/bin/phpunit --exclude-group no-travis --coverage-clover ./build/logs/clover.xml
#  - ./vendor/bin/phpcs --standard=PSR2 ./src/ ./tests/

language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
  fast_finish: true
  allow_failures:
  - php: hhvm
before_script:
- travis_retry rm -rf vendor composer.lock
- travis_retry composer self-update
- travis_retry composer install --prefer-source --no-interaction --optimize-autoloader
script:
- "./vendor/bin/phpunit --exclude-group no-travis --coverage-clover ./build/logs/clover.xml"
env:
  global:
    secure: dprB6lKW9M9qUP11JTKEG3eSQ+1kd4vjo2TYWqXRWEDvYSXAnMaddJqs05caQipSn/OtXGQow1oQyiM0Do39lA3vN24jOrEnky4GpNlPsEupg+7j7sWWkjmOvEE1R5TxZFzn/4qZ/ABrE6VTkXHA38HzuPPmbW95TFIR5LwsSQg=

Add Code Climate coverate credentials
Add Code Climate coverate credentials
