<commit_before>language: php
php:
  - 5.6
  - 7.0
  - 7.1
  - 7.2

matrix:
  fast_finish: true
jobs:
  include:
      - stage: codecoverage
        if: type IN (pull_request) OR branch in (master, develop)
        php: 7.0
        script: ./vendor/bin/codecept run install --env travis-ci-hub -f -vvv -d; echo "\$sugar_config['state_checker']['test_state_check_mode'] = 2;\$sugar_config['show_log_trace'] = true;\$sugar_config['logger']['level'] = 'debug';" >> config_override.php  ; ./vendor/bin/robo -vvv code:coverage; cat codeception.yml; bash <(curl -s https://codecov.io/bash) -f ./_output/coverage.xml
sudo: required
dist: trusty
services:
  - mysql
  - elasticsearch
addons:
  chrome: stable

env:
  - INSTANCE_URL=http://localhost DATABASE_DRIVER=MYSQL DATABASE_NAME=automated_tests DATABASE_HOST=localhost DATABASE_USER=automated_tests DATABASE_PASSWORD=<PASSWORD> INSTANCE_ADMIN_USER=admin INSTANCE_ADMIN_PASSWORD=<PASSWORD> COMPOSER_MEMORY_LIMIT=-1 GSYNC_LOGLEVEL=info

before_install:
  # Install chrome driver#
  - whereis google-chrome-stable
  - wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
  - unzip -o chromedriver_linux64.zip
  - ./chromedriver --url-base=/wd/hub &

install:
  - phpenv config-add travis.php.ini
  - composer self-update && composer --version

before_script:
  # Set up MySQL
  - mysql -e "CREATE DATABASE automated_tests CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"
  - 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';"
  # Install apache - images with PHP 7 or above<commit_msg>revert: do not need config before coverage<commit_after>language: php
php:
  - 5.6
  - 7.0
  - 7.1
  - 7.2

matrix:
  fast_finish: true
jobs:
  include:
      - stage: codecoverage
        if: type IN (pull_request) OR branch in (master, develop)
        php: 7.0
        script: ./vendor/bin/codecept run install --env travis-ci-hub -f -vvv -d; ./vendor/bin/robo -vvv code:coverage; cat codeception.yml; bash <(curl -s https://codecov.io/bash) -f ./_output/coverage.xml
sudo: required
dist: trusty
services:
  - mysql
  - elasticsearch
addons:
  chrome: stable

env:
  - INSTANCE_URL=http://localhost DATABASE_DRIVER=MYSQL DATABASE_NAME=automated_tests DATABASE_HOST=localhost DATABASE_USER=automated_tests DATABASE_PASSWORD=<PASSWORD> INSTANCE_ADMIN_USER=admin INSTANCE_ADMIN_PASSWORD=<PASSWORD> COMPOSER_MEMORY_LIMIT=-1 GSYNC_LOGLEVEL=info

before_install:
  # Install chrome driver#
  - whereis google-chrome-stable
  - wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
  - unzip -o chromedriver_linux64.zip
  - ./chromedriver --url-base=/wd/hub &

install:
  - phpenv config-add travis.php.ini
  - composer self-update && composer --version

before_script:
  # Set up MySQL
  - mysql -e "CREATE DATABASE automated_tests CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"
  - 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';"
  # Install apache - images with PHP 7 or above
{'fraction_non_alphanumeric': 0.11483990147783252, 'fraction_numerical': 0.014470443349753694, 'mean_word_length': 3.9603053435114504, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4954280', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1156, 'n_words': 271}