<commit_before>language: php

sudo: false

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

php:
  - 5.6.30
  - 7.0.21
  - 7.1.7

matrix:
  fast_finish: true

env:
  - TYPE=mysql
  - TYPE=pgsql

install:
  - composer selfupdate
  - composer install

before_script:
  - if [[ "$TYPE" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS b8_test;" -uroot; fi
  - if [[ "$TYPE" == "pgsql" ]]; then psql -c 'create database b8_test;' -U postgres; fi

script:
  - vendor/bin/phpunit --configuration phpunit.$TYPE.xml --coverage-clover=coverage.xml

after_success:
  - bash <(curl -s https://codecov.io/bash)

notifications:
  email:
    recipients:
      - <EMAIL>

    on_success: always
    on_failure: always
<commit_msg>Added PHP 7.2 to TravisCI config and fix other PHP versions.<commit_after>language: php

sudo: false

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

php:
  - 5.6
  - 7.0
  - 7.1
  - 7.2

matrix:
  fast_finish: true

env:
  - TYPE=mysql
  - TYPE=pgsql

install:
  - composer selfupdate
  - composer install

before_script:
  - if [[ "$TYPE" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS b8_test;" -uroot; fi
  - if [[ "$TYPE" == "pgsql" ]]; then psql -c 'create database b8_test;' -U postgres; fi

script:
  - vendor/bin/phpunit --configuration phpunit.$TYPE.xml --coverage-clover=coverage.xml

after_success:
  - bash <(curl -s https://codecov.io/bash)

notifications:
  email:
    recipients:
      - <EMAIL>

    on_success: always
    on_failure: always

{'fraction_non_alphanumeric': 0.13905522288755823, 'fraction_numerical': 0.0166333998669328, 'mean_word_length': 2.836734693877551, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2787417', 'n_tokens_mistral': 593, 'n_tokens_neox': 565, 'n_words': 145}