MehrAlsNix/Notifier

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

php:
  - 5.6
  - 7
  - hhvm
  - nightly

cache:
  directories:
    - vendor
    - $HOME/.composer/cache

matrix:
  allow_failures:
    - php: nightly
  fast_finish: true

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install libnotify-bin
  - sudo apt-get install notification-daemon
  - sudo apt-get install notify-osd

install:
  - composer selfupdate
  - composer install

script:
  - mkdir -p build/logs
  - phpunit

after_script:
  - if [[$(phpenv version-name) != "nightly" && $(phpenv version-name) != "hhvm"]]; then CODECLIMATE_REPO_TOKEN=752a6dea136d451cf6c17fad485c2cc734fc745325cc7e177f8a6bfe2b77de66 ./vendor/bin/test-reporter --stdout > codeclimate.json; fi
  - "if [[$(phpenv version-name) != 'nightly' && $(phpenv version-name) != 'hhvm']]; 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"