fatcode/enum

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

sudo: true

env:
  global:
    - CC_TEST_REPORTER_ID=b6d7b87f549d737b66407eaefcad8cf8d57a5532c3520016ed2e9f20f9ad1bfa

php:
  - 7.2
  - 7.3

before_install:
  - 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

install:
  - composer install --no-interaction --no-progress --no-suggest

script:
  - vendor/bin/phpunit --coverage-clover=clover.xml
  - vendor/bin/phpcs --standard=PSR12 --warning-severity=0 src

after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

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