<commit_before>language: php

sudo: false

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6

matrix:
  fast_finish: true
  include:
    - php: 5.5
      env: PHPCS=1

install:
  - git clone git://github.com/cakephp/cakephp ../cake && cd ../cake && git checkout 2.7
  - cp -R ../cakephp-pusher app/Plugin/CakePusher
  - cd app
  - sh -c "composer require 'phpunit/phpunit=3.7.33'"
  - sh -c "if [ '$PHPCS' = '1' ]; then composer require 'cakephp/cakephp-codesniffer=1.x'; fi"

script:
  - sh -c "if [ '$PHPCS' != '1' ]; then ./Console/cake test CakePusher Controller/Component/PusherComponent; fi"
  - sh -c "if [ '$PHPCS' = '1' ]; then Vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./Plugin/CakePusher/Controller ./Plugin/CakePusher/Test; fi"

notifications:
  email: false<commit_msg>Add before_scipt to travis build<commit_after>language: php

sudo: false

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6

matrix:
  fast_finish: true
  include:
    - php: 5.5
      env: PHPCS=1

install:
  - git clone git://github.com/cakephp/cakephp ../cake && cd ../cake && git checkout 2.7
  - cp -R ../cakephp-pusher app/Plugin/CakePusher
  - cd app
  - sh -c "composer require 'phpunit/phpunit=3.7.33'"
  - sh -c "if [ '$PHPCS' = '1' ]; then composer require 'cakephp/cakephp-codesniffer=1.x'; fi"

before_script:
  - if [ "$PHPCS" != 1 ]; then
            echo "
                require_once APP . DS . 'vendor' . DS . 'phpunit' . DS . 'phpunit' . DS . 'PHPUnit' . DS . 'Autoload.php';
            " >> ./Config/bootstrap.php;
    fi

script:
  - sh -c "if [ '$PHPCS' != '1' ]; then ./Console/cake test CakePusher Controller/Component/PusherComponent; fi"
  - sh -c "if [ '$PHPCS' = '1' ]; then Vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./Plugin/CakePusher/Controller ./Plugin/CakePusher/Test; fi"

notifications:
  email: false
{'fraction_non_alphanumeric': 0.16754756871035942, 'fraction_numerical': 0.022727272727272728, 'mean_word_length': 2.578449905482042, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7335432', 'n_tokens_mistral': 781, 'n_tokens_neox': 739, 'n_words': 175}