chrismou/phergie-irc-plugin-react-google

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

sudo: false

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm

matrix:
  allow_failures:
    - php: hhvm

before_script:
  - travis_retry composer self-update
  - travis_retry composer install
  - mkdir -p build/logs

script:
  - bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi;'
  - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi;'

after_script:
  - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then CODECLIMATE_REPO_TOKEN=6cf000785d4521741f433ba2bbbdbfe21b42cc2a31d7114562c2a77c9871ecad ./vendor/bin/test-reporter; fi;'
  - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
  - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'

notifications:
  slack:
    secure: hHAp5WryuNPab0dhzP4mAnJ5wSY1y1jwFoF3GFBKDSq81Dfngis5JuXQc7Fej7amZZd6MhP4bCHuaGsPNMTo3wpoOhJDQeMU8f2stXSlAfQc2QbcbJhwE1svjrMrzo976zSdchRyVcndFVKLZnxfHmTg5IPB4HudG8hIKuRcUD8=