chrismou/phergie-irc-plugin-react-pingpong

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=d65b5331a3e71f5e861dd316763901c194a229aad40b699de88e7e88f686d8e2 ./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: DUC9a45dzD0rmDIc/InzO2A/NvA0KMP2r5P34fKu1iWxwZXbQtcQag2twSJklBauwt5XgeJNAB4JAySh0/DSTTUC6ThqVSU8wkKccTynHcN9807hXMLNEwxT5hSSbSTAMSDBib0yxCac6Ohu6xk0+jGW8ro0e0RP1j7XudXGUPQ=