<commit_before>language: php

php:
  - 7.1
  - 7.2
  - nightly

matrix:
  allow_failures:
    - php:
        - nightly

before_script: composer install

script: vendor/bin/phpunit --coverage-clover=coverage.clover

after_script:
  - sh -c 'if [ $(phpenv version-name) = "7.1" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'
<commit_msg>new travis config<commit_after>language: php

sudo: false

matrix:
  include:
    - php: 7.1
      env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=true
    - php: 7.2
      env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=false
    - php: nightly
      env: COLLECT_COVERAGE=false VALIDATE_CODING_STYLE=false
  allow_failures:
    - php: nightly
  fast_finish: true

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

before_install:
  - travis_retry composer self-update

install:
  - composer update --no-interaction --prefer-source

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

after_script:
  - if [ "$COLLECT_COVERAGE" == "true" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/clover.xml; fi
  - if [ "$VALIDATE_CODING_STYLE" == "true" ]; then php vendor/bin/phpcs; fi

{'fraction_non_alphanumeric': 0.12412723041117145, 'fraction_numerical': 0.007757951900698216, 'mean_word_length': 3.5104895104895104, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1910183', 'n_tokens_mistral': 508, 'n_tokens_neox': 481, 'n_words': 95}