<commit_before>os: linux
dist: bionic
language: php

env:
  - PATH="app/vendor/bin:${PATH}" PHP_CS_FIXER_IGNORE_ENV="true"

php:
  - 7.2
  - 7.3
  - 7.4
  - 8.0
  - nightly

jobs:
  allow_failures:
    - php: nightly

services:
  - memcached
  - redis

cache:
  directories:
    - $HOME/.composer/cache
    - $HOME/.npm
    - app/vendor

before_install:
  - nvm install 14.15
  - printf "\n" | pecl install -f apcu-5.1.18 memcached
  - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

install:
  - composer update
  - npm ci

script:
  - npm run production --verbose
  - php-cs-fixer fix --diff --dry-run
  - psalm --show-info=true
  - phpunit --coverage-text

before_deploy: make artifacts

deploy:<commit_msg>Don't override PATH in CI<commit_after>os: linux
dist: bionic
language: php

env:
  - PHP_CS_FIXER_IGNORE_ENV="true"

php:
  - 7.2
  - 7.3
  - 7.4
  - 8.0
  - nightly

jobs:
  allow_failures:
    - php: nightly

services:
  - memcached
  - redis

cache:
  directories:
    - $HOME/.composer/cache
    - $HOME/.npm
    - app/vendor

before_install:
  - nvm install 14.15
  - printf "\n" | pecl install -f apcu-5.1.18 memcached
  - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

install:
  - composer update
  - npm ci

script:
  - npm run production --verbose
  - app/vendor/bin/php-cs-fixer fix --diff --dry-run
  - app/vendor/bin/psalm --show-info=true
  - app/vendor/bin/phpunit --coverage-text

before_deploy: make artifacts

deploy:
{'fraction_non_alphanumeric': 0.14116874589625739, 'fraction_numerical': 0.021011162179908074, 'mean_word_length': 2.45578231292517, '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': '164602', 'n_tokens_mistral': 655, 'n_tokens_neox': 604, 'n_words': 132}