<commit_before>dist: trusty

sudo: false

language: php

matrix:
  include:
    - php: 5.6
      env: DB=PGSQL RECIPE_VERSION="4.2.x-dev" PHPUNIT_TEST=1
    - php: 7.1
      env: DB=PGSQL RECIPE_VERSION="4.2.x-dev" PHPUNIT_TEST=1
    - php: 7.2
      env: DB=MYSQL RECIPE_VERSION="4.3.x-dev" PHPUNIT_TEST=1
    - php: 7.3
      env: DB=MYSQL RECIPE_VERSION="4.4.x-dev" PHPUNIT_TEST=1 PHPCS_TEST=1
    - php: 7.3
      env: DB=MYSQL RECIPE_VERSION="4.x-dev" PHPUNIT_TEST=1

before_script:
  - phpenv rehash
  - phpenv config-rm xdebug.ini

  - composer validate
  - if [[ $DB == PGSQL ]]; then composer require --prefer-dist --no-update silverstripe/postgresql 2.1.x-dev; fi
  - composer require --no-update silverstripe/recipe-cms "$RECIPE_VERSION"
  - composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile

script:
  - if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
  - if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
  - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs src/ ; fi

after_success:
  - if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi
<commit_msg>Fix broken recipe installation for tests<commit_after>dist: trusty

sudo: false

language: php

matrix:
  include:
    - php: 5.6
      env: DB=PGSQL RECIPE_VERSION="^4.2" PHPUNIT_TEST=1
    - php: 7.1
      env: DB=PGSQL RECIPE_VERSION="^4.2" PHPUNIT_TEST=1
    - php: 7.2
      env: DB=MYSQL RECIPE_VERSION="^4.3" PHPUNIT_TEST=1
    - php: 7.3
      env: DB=MYSQL RECIPE_VERSION="^4.4" PHPUNIT_TEST=1 PHPCS_TEST=1
    - php: 7.3
      env: DB=MYSQL RECIPE_VERSION="^4" PHPUNIT_TEST=1

before_script:
  - phpenv rehash
  - phpenv config-rm xdebug.ini

  - composer validate
  - if [[ $DB == PGSQL ]]; then composer require --prefer-dist --no-update silverstripe/postgresql 2.1.x-dev; fi
  - composer require --no-update silverstripe/recipe-cms "$RECIPE_VERSION"
  - composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile

script:
  - if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
  - if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
  - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs src/ ; fi

after_success:
  - if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi

{'fraction_non_alphanumeric': 0.14476885644768855, 'fraction_numerical': 0.021897810218978103, 'mean_word_length': 3.16722972972973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '557486', 'n_tokens_mistral': 995, 'n_tokens_neox': 954, 'n_words': 211}