landrok/laravel-request-logger

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

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

env:
    global:
        - XDEBUG_MODE=coverage

php:
  - 7.4
  - 8.0
  - 8.1
  - nightly

matrix:
  allow_failures:
    - php: nightly

install:
  - composer install --prefer-source --no-interaction
  # PHPUnit
  - ./vendor/bin/phpunit --version

before_script:
    # Install code climate reporter
    - 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:
  # Run PHP unit tests
  - ./vendor/bin/phpunit -c phpunit.xml.dist

after_script:
  # Code climate
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -r $CC_TEST_REPORTER_ID -d