iranianpep/keyword-extractor

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
env:
  global:
    - coverage=false
    - CC_TEST_REPORTER_ID=c516503883184828f7cf4f3768e665f0ec8b25241bb17be609c0004117de5eb0

language: php

matrix:
  include:
  - php: 7.3
    env: coverage=true
  - php: 7.4

sudo: false

install:
    - composer install

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - if [[ $coverage = 'true' ]]; then ./cc-test-reporter before-build; fi

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

after_script:
  - if [[ $coverage = 'true' ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi