<commit_before>language: php

php:
  - 5.4
  - 5.6
  - hhvm

matrix:
  allow_failures:
    - php: hhvm

before_script:
  - composer self-update
  - composer install --no-dev
  - curl -LSs https://box-project.github.io/box2/installer.php | php
  - composer global require drush/drush:dev-master
  - composer global require drupal/coder:~8.1

script:
  - phpunit
  - php box.phar build
  - php console.phar --version
  - sudo mv console.phar /usr/local/bin/drupal
  - ~/.composer/vendor/bin/drush dl drupal-8.0.0-beta9
  - mv drupal-8.0.0-beta9 drupal8.dev
  - cd drupal8.dev
  - ~/.composer/vendor/bin/drush site-install standard --yes --account-name=root --account-pass=toor --db-url=sqlite:$TRAVIS_BUILD_DIR/drupal8.dev/sites/default/files/console.sqlite
  - drupal chain --file=$TRAVIS_BUILD_DIR/config/dist/chain.yml
  - ~/.composer/vendor/bin/phpcs --standard=~/.composer/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml modules/custom/example
  - if ~/.composer/vendor/bin/phpcs --standard=~/.composer/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml modules/custom/example | egrep "FOUND ([1-9]+) ERRORS" --quiet; then echo "Errors in coding standards"; exit 1; else exit 0; fi

after_script:
  - rm -r /tmp/modules

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/637685414a0d0ef9d4c6
    on_success: change
    on_failure: always<commit_msg>#560 Add PROJECT_DIR variable<commit_after>language: php

php:
  - 5.4
  - 5.6
  - hhvm

matrix:
  allow_failures:
    - php: hhvm

env:
  global:
    - PROJECT_DIR=/home/project

before_script:
  - composer self-update
  - composer install --no-dev
  - curl -LSs https://box-project.github.io/box2/installer.php | php
  - composer global require drush/drush:dev-master
  - composer global require drupal/coder:~8.1

script:
  - phpunit
  - php box.phar build
  - php console.phar --version
  - sudo mv console.phar /usr/local/bin/drupal
  - ~/.composer/vendor/bin/drush dl drupal-8.0.0-beta9
  - mv drupal-8.0.0-beta9 drupal8.dev
  - cd drupal8.dev
  - ~/.composer/vendor/bin/drush site-install standard --yes --account-name=root --account-pass=<PASSWORD> --db-url=sqlite:$TRAVIS_BUILD_DIR/drupal8.dev/sites/default/files/console.sqlite
  - drupal chain --file=$TRAVIS_BUILD_DIR/config/dist/chain.yml
  - ~/.composer/vendor/bin/phpcs --standard=~/.composer/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml modules/custom/example
  - if ~/.composer/vendor/bin/phpcs --standard=~/.composer/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml modules/custom/example | egrep "FOUND ([1-9]+) ERRORS" --quiet; then echo "Errors in coding standards"; exit 1; else exit 0; fi

after_script:
  - rm -r /tmp/modules

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/637685414a0d0ef9d4c6
    on_success: change
    on_failure: always
{'fraction_non_alphanumeric': 0.13998589562764457, 'fraction_numerical': 0.026445698166431594, 'mean_word_length': 3.159824046920821, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 4, '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': '7164630', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1088, 'n_words': 193}