chrismou/phergie-irc-plugin-react-weather

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
    - php: nightly

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=8262e2f1cb208160ae74f61d403d169ffabf1523605445fd9fc882bf1fb00539 ./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: yOg01dBH/CzzeGUAap1vwZg9hsGuRWnk0tG75SJlPnb6SDt+0lv7iU2Fxv89c3MYjFORAG2JbI4YF9ec8NccAdfqHHhzatWfs4se+AakhgnwfdvcCrnGxnhoDwRLSVNCKdzMBWuXD5uVZMBQTkklfVkBe3OFmHgLuGA/kpb5+kw=