<commit_before>language: php
dist: xenial
services:
    - mysql
matrix:
    include:
        -   php: 7.1

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

sudo: false

before_script:
    - composer install
    - mysql -e 'create database fork_test'
    - mysql -u root fork_test < tests/data/test_db.sql
    - cp app/config/parameters.yml.travis app/config/parameters.yml
    - mysql -e "SET GLOBAL wait_timeout = 3600" # try to avoid mysql has gone away errors

after_script:
    - yarn test

after_failure:
    - cat var/logs/test.log

jobs:
    include:
        -   stage: code quality
            php: 7.1
            name: PHP Static Analysis Tool
            before_script:
                - mysql -e 'create database fork'
                - mysql -u root fork < tests/data/test_db.sql
                - cp app/config/parameters.yml.travis app/config/parameters.yml
                - mysql -e "SET GLOBAL wait_timeout = 3600" # try to avoid mysql has gone away errors
                - composer install
            script: bin/phpstan analyze src
            after_success: skip
        -   stage: code quality
            php: 7.1
            name: PHP Code Sniffer
            before_script: composer install
            script: bin/phpcs --standard=psr2 --extensions=php --warning-severity=0 --ignore=src/Backend/Core/Js/ckfinder,src/Backend/Cache,src/Frontend/Cache,src/Backend/Core/Js/ckeditor --report=full "src"
            after_success: skip
        -   stage: test
            name: Functional
            php: 7.1
            script: travis_wait 30 bin/simple-phpunit --testsuite=functional
        -   stage: test
            name: Unit
            php: 7.1
            script: travis_wait 30 bin/simple-phpunit --testsuite=unit
        -   stage: test
            name: Installer
            php: 7.1
            script: travis_wait 30 bin/simple-phpunit --testsuite=installer
<commit_msg>Try to combine the clover files<commit_after>language: php
dist: xenial
services:
    - mysql
matrix:
    include:
        -   php: 7.1

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

sudo: false

before_script:
    - composer install
    - mysql -e 'create database fork_test'
    - mysql -u root fork_test < tests/data/test_db.sql
    - cp app/config/parameters.yml.travis app/config/parameters.yml
    - mysql -e "SET GLOBAL wait_timeout = 3600" # try to avoid mysql has gone away errors

after_script:
    - yarn test

after_success:
    - wget https://scrutinizer-ci.com/ocular.phar
    - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

after_failure:
    - cat var/logs/test.log

jobs:
    include:
        -   stage: code quality
            php: 7.1
            name: PHP Static Analysis Tool
            before_script:
                - mysql -e 'create database fork'
                - mysql -u root fork < tests/data/test_db.sql
                - cp app/config/parameters.yml.travis app/config/parameters.yml
                - mysql -e "SET GLOBAL wait_timeout = 3600" # try to avoid mysql has gone away errors
                - composer install
            script: bin/phpstan analyze src
            after_success: skip
        -   stage: code quality
            php: 7.1
            name: PHP Code Sniffer
            before_script: composer install
            script: bin/phpcs --standard=psr2 --extensions=php --warning-severity=0 --ignore=src/Backend/Core/Js/ckfinder,src/Backend/Cache,src/Frontend/Cache,src/Backend/Core/Js/ckeditor --report=full "src"
            after_success: skip
        -   stage: test
            name: Functional
            php: 7.1
            script: travis_wait 30 bin/simple-phpunit --testsuite=functional --coverage-clover=coverage.clover
        -   stage: test
            name: Unit
            php: 7.1
            script: travis_wait 30 bin/simple-phpunit --testsuite=unit --coverage-clover=coverage.clover
        -   stage: test
            name: Installer
            php: 7.1
            script: travis_wait 30 bin/simple-phpunit --testsuite=installer --coverage-clover=coverage.clover

{'fraction_non_alphanumeric': 0.08829968377523717, 'fraction_numerical': 0.013621989783507663, 'mean_word_length': 1.8203017832647461, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1137131', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1199, 'n_words': 324}