<commit_before>os: linux
dist: xenial
group: edge
services:
  - mysql
addons:
  apt:
    packages:
      - postfix
  hosts:
    - magento2.travis
language: php
jobs:
  include:
    - php: 7.3
      env:
        - MAGENTO_VERSION=2.3
        - TEST_SUITE=integration
    - php: 7.4
      env:
        - MAGENTO_VERSION=2.4
        - TEST_SUITE=integration
env:
  global:
    - COMPOSER_BIN_DIR=~/bin
    - COMPOSER_PACKAGE_NAME=tddwizard/magento2-fixtures
cache:
  apt: true
  directories:
    - $HOME/.composer/cache
before_install:
  - curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-amd64.deb
  - sudo dpkg -i --force-confnew elasticsearch-7.6.2-amd64.deb 
  - sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
  - sudo service elasticsearch restart
before_script:
  - |
    sleep 10
    ./.travis/before_script.sh
script: phpunit -c magento2/dev/tests/$TEST_SUITE --coverage-text --coverage-clover=/tmp/coverage.clover -vvv --testdox
after_script:
  - |
    wget https://scrutinizer-ci.com/ocular.phar
    php ocular.phar code-coverage:upload --format=php-clover /tmp/coverage.clover<commit_msg>Only collect code coverage in a single build per test suite<commit_after>os: linux
dist: xenial
group: edge
services:
  - mysql
addons:
  apt:
    packages:
      - postfix
  hosts:
    - magento2.travis
language: php
jobs:
  include:
    - php: 7.3
      env:
        - MAGENTO_VERSION=2.3
        - TEST_SUITE=integration
    - php: 7.4
      env:
        - MAGENTO_VERSION=2.4
        - TEST_SUITE=integration
        - COVERAGE=true
env:
  global:
    - COMPOSER_BIN_DIR=~/bin
    - COMPOSER_PACKAGE_NAME=tddwizard/magento2-fixtures
cache:
  apt: true
  directories:
    - $HOME/.composer/cache
before_install:
  - curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-amd64.deb
  - sudo dpkg -i --force-confnew elasticsearch-7.6.2-amd64.deb
  - sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
  - sudo service elasticsearch restart
before_script:
  - |
    sleep 10
    [[ $COVERAGE == "true" ]] || phpenv config-rm xdebug.ini
    ./.travis/before_script.sh
script: phpunit -c magento2/dev/tests/$TEST_SUITE `[[ $COVERAGE == "true" ]] && echo "--coverage-text --coverage-clover=/tmp/coverage.clover"`
after_script:
  - |
    [[ $COVERAGE == "true" ]] && wget https://scrutinizer-ci.com/ocular.phar
    [[ $COVERAGE == "true" ]] && php ocular.phar code-coverage:upload --format=php-clover /tmp/coverage.clover
{'fraction_non_alphanumeric': 0.12624452409398645, 'fraction_numerical': 0.018319394663480686, 'mean_word_length': 2.806060606060606, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2034588', 'n_tokens_mistral': 962, 'n_tokens_neox': 918, 'n_words': 170}