<commit_before># See https://github.com/silverstripe/silverstripe-travis-support for setup details

sudo: false

language: php

env:
  global:
    - COMPOSER_ROOT_VERSION=4.0.x-dev
    - CORE_RELEASE=master

matrix:
  fast_finish: true
  include:
    - php: 5.6
      env: DB=MYSQL PHPUNIT_TEST=1 PHPCS_TEST=1
    - php: 7.0
      env: DB=MYSQL PHPUNIT_TEST=1
    - php: 7.1.2
      env: DB=MYSQL PDO=1 PHPUNIT_COVERAGE_TEST=1

before_script:
  - composer validate
  - composer self-update || true
  - "if [ \"$PHPCS_TEST\" = \"1\" ]; then composer require --dev squizlabs/php_codesniffer; fi"
  - phpenv rehash
  - "if [ \"$PHPUNIT_COVERAGE_TEST\" != \"1\" ]; then phpenv config-rm xdebug.ini; fi"
  - composer validate
  - composer require silverstripe/cms 4.0.x-dev
  - composer install --prefer-dist

script:
  - "if [ \"$PHPUNIT_TEST\" = \"1\" ]; then vendor/bin/phpunit; fi"
  - "if [ \"$PHPCS_TEST\" = \"1\" ]; then composer run-script lint; fi"
  - "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ]; then vendor/bin/phpunit --coverage-clover=coverage.xml; fi"

after_success:
  - "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi"
<commit_msg>FIX Use phpdbg instead of xdebug for code coverage runs<commit_after># See https://github.com/silverstripe/silverstripe-travis-support for setup details

sudo: false

language: php

env:
  global:
    - COMPOSER_ROOT_VERSION=4.0.x-dev
    - CORE_RELEASE=4

matrix:
  fast_finish: true
  include:
    - php: 5.6
      env: DB=MYSQL PHPUNIT_TEST=1 PHPCS_TEST=1
    - php: 7.0
      env: DB=MYSQL PHPUNIT_TEST=1
    - php: 7.1
      env: DB=MYSQL PDO=1 PHPUNIT_COVERAGE_TEST=1

before_script:
  - composer validate
  - composer self-update || true
  - if [[ $PHPCS_TEST ]]; then composer require --dev squizlabs/php_codesniffer; fi
  - phpenv rehash
  - phpenv config-rm xdebug.ini
  - composer validate
  - composer require silverstripe/cms 4.0.x-dev
  - composer install --prefer-dist

script:
  - if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
  - if [[ $PHPCS_TEST ]]; then composer run-script lint; fi
  - if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi

after_success:
  - if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi

{'fraction_non_alphanumeric': 0.14029084687767324, 'fraction_numerical': 0.016253207869974338, 'mean_word_length': 3.1325088339222615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '853219', 'n_tokens_mistral': 919, 'n_tokens_neox': 896, 'n_words': 207}