<commit_before>language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
#  - hhvm

# faster builds on new travis setup not using sudo
sudo: false

# cache vendor dirs
cache:
  directories:
    - $HOME/.composer/cache

install:
  - travis_retry composer self-update && composer --version
  - travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
  - export PATH="$HOME/.composer/vendor/bin:$PATH"
  - travis_retry composer install --dev --prefer-dist --no-interaction
# codeception
  - travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
# setup application:
  - |
    sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
    cd tests
    codecept build
    cd ..

before_script:
  - mysql -e 'CREATE DATABASE basic_tests;';
  - cd tests/codeception/bin && php yii migrate --interactive=0 && cd ../../..
    
script:
  - |
    cd web
    php -S localhost:8080 > /dev/null 2>&1 &
    cd ../tests<commit_msg>Travis.yml updated with comment.<commit_after>language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
#  - hhvm

# faster builds on new travis setup not using sudo
sudo: false

# cache vendor dirs
cache:
  directories:
    - $HOME/.composer/cache

install:
  - travis_retry composer self-update && composer --version
  - travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
  - export PATH="$HOME/.composer/vendor/bin:$PATH"
  - travis_retry composer install --dev --prefer-dist --no-interaction
# codeception
  - travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
# setup application:
  - |
    sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
    cd tests
    codecept build
    cd ..

before_script:
# database setup:
  - mysql -e 'CREATE DATABASE basic_tests;';
  - cd tests/codeception/bin && php yii migrate --interactive=0 && cd ../../..
    
script:
  - |
    cd web
    php -S localhost:8080 > /dev/null 2>&1 &
    cd ../tests
{'fraction_non_alphanumeric': 0.14265060240963856, 'fraction_numerical': 0.01927710843373494, 'mean_word_length': 2.880373831775701, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '43679', 'n_tokens_mistral': 747, 'n_tokens_neox': 714, 'n_words': 180}