.travis.yml

Summary

Maintainability
Test Coverage
language: php

php:
    - '5.4'
    - '5.5'
    - '5.6'
    - '7.0'
    - nightly
    - hhvm

before_script:
    - composer install --dev
    - if [[ $TRAVIS_PHP_VERSION == 5.4 ]]; then composer require codeclimate/php-test-reporter; fi
    
script:
    - if [[ $TRAVIS_PHP_VERSION == 5.4 ]];
        then phpunit --debug --coverage-text --coverage-clover build/logs/clover.xml;
        else phpunit --debug;
      fi

after_script:
    - if [ $TRAVIS_PHP_VERSION == 5.4 ]; then ./vendor/bin/test-reporter; fi

addons:
    code_climate:
        repo_token: 9306a3f880cd8ac07404813ea06738d579a2ef965f67abbee1ff05f2266270cc