fatcode/http-server

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

env:
  global:
    - CC_TEST_REPORTER_ID=f6250ef523190d98c880d5c3d64aa66981cfc056267b9aca333e74c92f422422

sudo: true

php:
  - 7.2
  - 7.3

before_install:
  - composer self-update
  - yes Y | pecl install -f swoole
  - composer install --no-interaction --no-progress --no-suggest
  - 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:
  - 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