<commit_before>language: php

sudo: false

branches:
    only:
        - master

matrix:
    include:
        - php: '7.1'
          env: lint=1
    fast_finish: true

cache:
    directories:
        - $HOME/.composer/cache

before_install:
    - phpenv config-rm xdebug.ini || echo "xdebug not available"
    - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
    - if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.3.1/php-cs-fixer.phar; fi
    - if [[ $lint = 1 ]]; then composer global require phpstan/phpstan; fi
    - export PATH="$PATH:$HOME/.composer/vendor/bin:./vendor/bin"

install:
    - if [[ ! $deps ]]; then composer update --prefer-source --no-progress --no-suggest --ansi; fi
    - if [[ $deps = 'dev' ]]; then composer config minimum-stability dev && composer update --prefer-source --no-progress --no-suggest --ansi ; fi
    - if [[ $deps = 'low' ]]; then composer update --prefer-source --no-progress --no-suggest --prefer-stable --prefer-lowest --ansi; fi

script:
    - make tests
    - if [[ $lint = 1 ]]; then php php-cs-fixer.phar fix --dry-run --diff --no-ansi; fi
    - if [[ $lint = 1 ]]; then phpstan analyse -c phpstan.neon -l5 --ansi src web bin; fi<commit_msg>[CI] Run composer install instead of update<commit_after>language: php

sudo: false

branches:
    only:
        - master

matrix:
    include:
        - php: '7.1'
          env: lint=1
    fast_finish: true

cache:
    directories:
        - $HOME/.composer/cache

before_install:
    - phpenv config-rm xdebug.ini || echo "xdebug not available"
    - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
    - if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.3.1/php-cs-fixer.phar; fi
    - if [[ $lint = 1 ]]; then composer global require phpstan/phpstan; fi
    - export PATH="$PATH:$HOME/.composer/vendor/bin:./vendor/bin"

install:
    - composer install --no-progress --no-suggest --ansi
    - if [[ $deps = 'dev' ]]; then composer config minimum-stability dev && composer update --prefer-source --no-progress --no-suggest --ansi ; fi
    - if [[ $deps = 'low' ]]; then composer update --prefer-source --no-progress --no-suggest --prefer-stable --prefer-lowest --ansi; fi

script:
    - make tests
    - if [[ $lint = 1 ]]; then php php-cs-fixer.phar fix --dry-run --diff --no-ansi; fi
    - if [[ $lint = 1 ]]; then phpstan analyse -c phpstan.neon -l5 --ansi src web bin; fi
{'fraction_non_alphanumeric': 0.16535742340926946, 'fraction_numerical': 0.009426551453260016, 'mean_word_length': 2.5082644628099175, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '6106603', 'n_tokens_mistral': 929, 'n_tokens_neox': 887, 'n_words': 230}