<commit_before>
language: php
php:
  - '5.5'
#  - '5.6'
#  - '7.0'
#  - '7.1'
matrix:
  allow_failures:
    - php: 5.4

include:
  - php: 5.4 # lowest versions of all dependencies
  - php: 5.5
  - php: 5.6
  - php: 7.0
  - php: 7.1

sudo: required
dist: trusty
services:
  # TODO: user docker to support different databases
  - mysql

install:
  - composer self-update && composer --version

before_script:
  # Use php built in web server
  - php -S localhost:8080 -c ./build/php.ini > $(pwd)/webserver.log 2>&1 &
  # configure database
  - mysql -e "CREATE DATABASE automated_tests;"
  - mysql -u root -e "CREATE USER 'automated_tests'@'localhost' IDENTIFIED BY 'automated_tests';"
  - mysql -u root -e "GRANT ALL PRIVILEGES ON automated_tests.* TO 'automated_tests'@'localhost';"
  - composer install
script:
  # Install SuiteCRM Using Acceptance Test
  - ./vendor/bin/codecept run -f install --env browser-stack-hub,browser-stack-local,browser-stack-chrome-fhd,travis-ci-hub --debug
  - cat suitecrm.log
  - cat sugarcrm.log
  - cat webserver.log
branches:
  only:
    - master
    - hotfix
    - develop
    - /feature.*/
    - /fix.*/<commit_msg>Adding acceptance tests to travis build<commit_after>
language: php
php:
  - '5.5'
#  - '5.6'
#  - '7.0'
#  - '7.1'
matrix:
  allow_failures:
    - php: 5.4

include:
  - php: 5.4 # lowest versions of all dependencies
  - php: 5.5
  - php: 5.6
  - php: 7.0
  - php: 7.1

sudo: required
dist: trusty
services:
  # TODO: user docker to support different databases
  - mysql

install:
  - composer self-update && composer --version

before_script:
  # Use php built in web server
  - php -S localhost:8080 -c ./build/php.ini > $(pwd)/webserver.log 2>&1 &
  # configure database
  - mysql -e "CREATE DATABASE automated_tests;"
  - mysql -u root -e "CREATE USER 'automated_tests'@'localhost' IDENTIFIED BY 'automated_tests';"
  - mysql -u root -e "GRANT ALL PRIVILEGES ON automated_tests.* TO 'automated_tests'@'localhost';"
  - composer install
script:
  # Install SuiteCRM Using Acceptance Test
  - ./vendor/bin/codecept run -f install --env browser-stack-hub,browser-stack-local,browser-stack-chrome-fhd,travis-ci-hub --debug
  - ./vendor/bin/codecept run -f acceptance --env browser-stack-hub,browser-stack-local,browser-stack-chrome-fhd,travis-ci-hub --debug
  - ./vendor/bin/codecept run -f acceptance --env browser-stack-hub,browser-stack-local,browser-stack-firefox-fhd,travis-ci-hub --debug
  - ./vendor/bin/codecept run -f acceptance --env browser-stack-hub,browser-stack-local,browser-stack-safari-fhd,travis-ci-hub --debug
  - ./vendor/bin/codecept run -f acceptance --env browser-stack-hub,browser-stack-local,browser-stack-edge-fhd,travis-ci-hub --debug
  - cat suitecrm.log
  - cat sugarcrm.log
  - cat webserver.log
branches:
  only:
    - master
    - hotfix
    - develop
    - /feature.*/
    - /fix.*/
{'fraction_non_alphanumeric': 0.13951866062085805, 'fraction_numerical': 0.018137425880711544, 'mean_word_length': 2.8756756756756756, 'pattern_counts': {'":': 0, '<': 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': '7335503', 'n_tokens_mistral': 1083, 'n_tokens_neox': 1037, 'n_words': 264}