<commit_before>language: php

php:
  - 5.3
  - 5.4
  - 5.5

before_script:
  - pyrus install pear/PHP_CodeSniffer
  - pyrus install typo3/PHPCS_TYPO3_SniffPool-alpha
  - pyrus install typo3/PHPCS_TYPO3v4_Standard-alpha
  - phpenv rehash
  - phpcs --config-set encoding utf-8
  - phpcs --config-set tab_width 4
  - phpcs --standard=Configuration/PhpCodeSniffer/Standards/Emogrifier/ emogrifier.php
  - phpcs --standard=Configuration/PhpCodeSniffer/Standards/EmogrifierTests/ Tests/


script:
  # Run PHP lint on all PHP files.
  - find -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l<commit_msg>[BUGFIX] Add the TYPO3 PEAR channel to .travis.yml.<commit_after>language: php

php:
  - 5.3
  - 5.4
  - 5.5

before_script:
  - pear channel-discover pear.typo3.org
  - pyrus install pear/PHP_CodeSniffer
  - pyrus install typo3/PHPCS_TYPO3_SniffPool-alpha
  - pyrus install typo3/PHPCS_TYPO3v4_Standard-alpha
  - phpenv rehash
  - phpcs --config-set encoding utf-8
  - phpcs --config-set tab_width 4
  - phpcs --standard=Configuration/PhpCodeSniffer/Standards/Emogrifier/ emogrifier.php
  - phpcs --standard=Configuration/PhpCodeSniffer/Standards/EmogrifierTests/ Tests/


script:
  # Run PHP lint on all PHP files.
  - find -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
{'fraction_non_alphanumeric': 0.10621557828481511, 'fraction_numerical': 0.02832415420928403, 'mean_word_length': 3.116504854368932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '853006', 'n_tokens_mistral': 531, 'n_tokens_neox': 500, 'n_words': 113}