<commit_before>language: php

php: [5.3, 5.4, 5.5, 5.6, 7.0, hhvm]

branches:
  except:
    - /^bugfix\/.*$/
    - /^feature\/.*$/
    - /^optimization\/.*$/

sudo: false

cache:
  directories:
    - $HOME/.composer/cache/files

matrix:
  include:
    # Test against LTS releases
    - php: 5.5
      env: SYMFONY_VERSION='2.3.*'
    - php: 5.5
      env: SYMFONY_VERSION='2.7.*'
    # Test against dev dependencies
    - php: 5.6
      env: DEPS=dev
    - php: 5.6
      env: DEPS=dev SYMFONY_VERSION='2.8.*'
    - php: 5.6
      env: DEPS=dev SYMFONY_VERSION='3.0.*'
    - php: 7.0
      env: SYMFONY_VERSION='3.0.*'

before_install:
  - composer self-update
  - mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d && echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - if [ "$DEPS" = 'dev' ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
  - if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update "symfony/symfony:${SYMFONY_VERSION}"; fi;

install:
  - composer install --no-progress

before_script:
  - export PATH=./vendor/bin:$PATH

script:
  - phpspec run -f pretty --no-interaction
  - behat --strict<commit_msg>Upgrade Travis configuration to run a smaller matrix<commit_after>language: php

branches:
  except:
    - /^bugfix\/.*$/
    - /^feature\/.*$/
    - /^optimization\/.*$/

sudo: false

cache:
  directories:
    - $HOME/.composer/cache/files

matrix:
  include:
    - php: 5.3.3
      env: SYMFONY_VERSION='2.3.*'
    - php: 5.5
      env: SYMFONY_VERSION='2.7.*'
    - php: 5.6
      env: SYMFONY_VERSION='2.8.*'
    - php: 7.0
      env: SYMFONY_VERSION='3.0.*'
    - php: 7.0
      env: DEPS=dev
    - php: hhvm
  allow_failures:
    - env: DEPS='dev'

before_install:
  - composer self-update
  - mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d && echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - if [ "$DEPS" = 'dev' ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
  - if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update "symfony/symfony:${SYMFONY_VERSION}"; fi;

install:
  - composer install --no-progress

before_script:
  - export PATH=./vendor/bin:$PATH

script:
  - phpspec run -f pretty --no-interaction
  - behat --strict
{'fraction_non_alphanumeric': 0.1891776736259054, 'fraction_numerical': 0.02258201959948871, 'mean_word_length': 2.536144578313253, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, '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': '556259', 'n_tokens_mistral': 982, 'n_tokens_neox': 937, 'n_words': 188}