<commit_before>language: php

php:
  - 5.3
  - 5.4
  - 5.5

before_script:
  - composer self-update
  - composer update --prefer-source
  - mkdir -p tests/build/logs

script:
  - ./vendor/bin/phpunit -c ./phpunit.xml
  - ./vendor/bin/phpcs --standard=PSR2 ./src/

notifications:
  irc: "irc.freenode.org#zftalk.modules"
  email: false

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover tests/build/logs/clover.xml<commit_msg>Only check CS when PHP != 5.3 for trait problems<commit_after>language: php

php:
  - 5.3
  - 5.4
  - 5.5

before_script:
  - composer self-update
  - composer update --prefer-source
  - mkdir -p tests/build/logs

script:
  - ./vendor/bin/phpunit -c ./phpunit.xml
  - sh -c "if [ '$TRAVIS_PHP_VERSION' != '5.3' ]; then ./vendor/bin/phpcs --standard=PSR2 ./src/; fi"

notifications:
  irc: "irc.freenode.org#zftalk.modules"
  email: false

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover tests/build/logs/clover.xml
{'fraction_non_alphanumeric': 0.15087396504139836, 'fraction_numerical': 0.01655933762649494, 'mean_word_length': 2.899641577060932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7164687', 'n_tokens_mistral': 445, 'n_tokens_neox': 425, 'n_words': 84}