<commit_before>language: php

dist: precise

sudo: required

php:
    - 7.1

branches:
    only:
    - master
    - dev

env:
    global:
        - NUCMS_CACHE_DIR=$HOME/.nucms-cache
        - NUCMS_BUILD_DIR=etc/build
        - TRAVIS_NODE_VERSION="7.5"

cache:
    yarn: true
    directories:
        - ~/.composer/cache/files
        - ~/.cache/pip
        - vendor
        - node_modules
        - NUCMS_CACHE_DIR

install:
    - composer update

script:
    - composer validate --strict
    - bin/phpspec run --no-interaction -f dot<commit_msg>Add behat to travis<commit_after>language: php

dist: precise

sudo: required

php:
    - 7.1

branches:
    only:
    - master
    - dev

env:
    global:
        - NUCMS_CACHE_DIR=$HOME/.nucms-cache
        - NUCMS_BUILD_DIR=etc/build
        - TRAVIS_NODE_VERSION="7.5"

cache:
    yarn: true
    directories:
        - ~/.composer/cache/files
        - ~/.cache/pip
        - vendor
        - node_modules
        - NUCMS_CACHE_DIR

install:
    - composer update

before_script:
    - bin/console doctrine:schema:create --env=test
    - bin/console assets:install web --env=test

script:
    - composer validate --strict
    - bin/phpspec run --no-interaction -f dot
    - bin/behat --strict -vvv --no-interaction || bin/behat --strict -vvv --no-interaction --rerun
{'fraction_non_alphanumeric': 0.11296436694465505, 'fraction_numerical': 0.006065200909780136, 'mean_word_length': 1.8884026258205688, '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': '6287238', 'n_tokens_mistral': 472, 'n_tokens_neox': 461, 'n_words': 95}