.travis.yml
language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- hhvm-nightly
matrix:
allow_failures:
- php: 7.0
- php: hhvm-nightly
fast_finish: true
before_script:
- composer self-update
- composer install --no-interaction
script:
- phpunit --coverage-text --coverage-html build/html --report-useless-tests
after_script:
- php vendor/bin/test-reporter --stdout > codeclimate.json
- "if [ \"$TRAVIS_PHP_VERSION\" == \"5.6\" ]; then curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports; fi"