<commit_before>sudo: false

language:
    - php

php:
    - 5.3
    - 5.4
    - 5.5
    - 5.6

env:
  - PHPCS_BRANCH=master
  - PHPCS_BRANCH=2.2.0
  - PHPCS_BRANCH=2.1.0
  - PHPCS_BRANCH=2.0.0
  - PHPCS_BRANCH=3.0.0

matrix:
  include:
    # Run against PHPCS 3.0.0. I just picked to run it against 5.6.
    - php: 5.6
      env: PHPCS_BRANCH=3.0.0
    # Run against HHVM and PHP nightly.
    - php: hhvm
      env: PHPCS_BRANCH=master
    - php: nightly
      env: PHPCS_BRANCH=master
  allow_failures:
    # Allow failures for unstable builds.
    - php: nightly
    - php: hhvm
    - env: PHPCS_BRANCH=3.0.0

before_script:
    - export PHPCS_DIR=/tmp/phpcs
    - mkdir -p $PHPCS_DIR && git clone --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git -b $PHPCS_BRANCH $PHPCS_DIR
    - $PHPCS_DIR/scripts/phpcs --config-set installed_paths $(pwd)

script:
    - find . \( -name '*.php' \) -exec php -lf {} \;
    - phpunit --filter WordPress /tmp/phpcs/tests/AllTests.php<commit_msg>Travis: Only run against PHPCS 3.0 once<commit_after>sudo: false

language:
    - php

php:
    - 5.3
    - 5.4
    - 5.5
    - 5.6

env:
  - PHPCS_BRANCH=master
  - PHPCS_BRANCH=2.2.0
  - PHPCS_BRANCH=2.1.0
  - PHPCS_BRANCH=2.0.0

matrix:
  include:
    # Run against PHPCS 3.0. I just picked to run it against 5.6.
    - php: 5.6
      env: PHPCS_BRANCH=3.0
    # Run against HHVM and PHP nightly.
    - php: hhvm
      env: PHPCS_BRANCH=master
    - php: nightly
      env: PHPCS_BRANCH=master
  allow_failures:
    # Allow failures for unstable builds.
    - php: nightly
    - php: hhvm
    - env: PHPCS_BRANCH=3.0

before_script:
    - export PHPCS_DIR=/tmp/phpcs
    - mkdir -p $PHPCS_DIR && git clone --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git -b $PHPCS_BRANCH $PHPCS_DIR
    - $PHPCS_DIR/scripts/phpcs --config-set installed_paths $(pwd)

script:
    - find . \( -name '*.php' \) -exec php -lf {} \;
    - phpunit --filter WordPress /tmp/phpcs/tests/AllTests.php
{'fraction_non_alphanumeric': 0.1279716742539201, 'fraction_numerical': 0.03237228123419322, 'mean_word_length': 2.221498371335505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1393921', 'n_tokens_mistral': 896, 'n_tokens_neox': 851, 'n_words': 180}