denpamusic/php-bitcoinrpc

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4
  - hhvm
  - nightly

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
  - composer self-update
  - if [[ "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then composer require "phpunit/phpunit:~5.0" --no-update; fi
  - composer install --prefer-source --no-interaction

script:
  - mkdir -p build/logs
  - php vendor/bin/phpunit
  - if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "nightly" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi

matrix:
  allow_failures:
    - php: hhvm
    - php: nightly
  fast_finish: true

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/6339300b1ec773532704
    on_success: change
    on_failure: always
    on_start: never