<commit_before>language: php

php:
  - "5.6"
  - "7.0"

env:
  - DB=mysql

before_script:
  - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS test;" -u root; fi
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source

script:
  - phpunit --coverage-text --configuration phpunit_$DB.xml --coverage-clover=./build/logs/clover.xml

after_success:
  - travis_retry composer require satooshi/php-coveralls ~0.6
  - php vendor/bin/coveralls -v<commit_msg>make travis run phpcs too<commit_after>language: php

php:
  - "5.6"
  - "7.0"

env:
  - DB=mysql

before_script:
  - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS test;" -u root; fi
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source

script:
  - phpunit --coverage-text --configuration phpunit_$DB.xml --coverage-clover=./build/logs/clover.xml
  - php vendor/bin/phpcs --report=full

after_success:
  - travis_retry composer require satooshi/php-coveralls ~0.6
  - php vendor/bin/coveralls -v
{'fraction_non_alphanumeric': 0.13881278538812786, 'fraction_numerical': 0.010958904109589041, 'mean_word_length': 3.28125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2671589', 'n_tokens_mistral': 407, 'n_tokens_neox': 401, 'n_words': 98}