wyrfel/php-callback

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php
sudo: false
php:
  - "7.1"
  - "7.2"
  - "7.3"
  - "7.4"
env:
  global:
    - CC_TEST_REPORTER_ID=ad00d9912a9280debdf11500a0b9f22084c721f70f843ec24dd0fc1c35e2a45b
install:
  - composer install -o
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
script:
  - mkdir -p build/logs
  - vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
  - travis_retry php vendor/bin/php-coveralls -v
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT