wol-soft/php-json-schema-model-generator-production

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

sudo: false

env:
  global:
    - CC_TEST_REPORTER_ID=707582f7cfdeea2ee389a01e4f4f88243b3399647045f8de1763885f4e835044

php:
  - 7.2
  - 7.3
  - 7.4

install:
  # Install coveralls.phar
  - wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar -O coveralls.phar
  - chmod +x coveralls.phar
  - php coveralls.phar --version
  # install codeclimate test 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

before_script:
  - composer self-update || true
  - composer install
  - mkdir -p build/logs

script:
  - ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml --testdox

after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
  - travis_retry php coveralls.phar -v
  - vendor/bin/test-reporter

cache:
  directories:
    - vendor
    - $COMPOSER_CACHE_DIR