Passed
Pull Request — master (#19)
by
unknown
03:27
created

Repository Config

build:
    environment:
        mysql: 5.6
        redis: false
    nodes:
        analysis:
            project_setup:
                override:
                    - 'true'
            tests:
                override:
                    - php-scrutinizer-run
                    -
                        command: phpcs-run
                        use_website_config: true
        tests: 
            tests:
                override:
                  - command: vendor/bin/phpunit --coverage-clover target/clover.xml
                    coverage:
                      file: target/clover.xml
                      format: clover

    dependencies:
        # Commands that should be run before the inferred commands in the dependencies section
        before:
            - echo -e "\n[mysqld]\ndefault_authentication_plugin=mysql_native_password\nserver-id=1\nbinlog_format=row\nlog_bin=/var/log/mysql/mysql-bin.log" | sudo tee -a /etc/mysql/my.cnf
            - sudo service mysql restart
            #- mysql -uroot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';"
            - mysql -uroot -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('root');"

filter:
    excluded_paths:
        - 'tests/*'
checks:
    php: {  }

coding_style:
    php:
        spaces:
            around_operators:
                concatenation: true
            other:
                after_type_cast: false