Passed
Push — master ( f6033e...966d85 )
by kacper
05:24
created

Repository Config

filter:
    excluded_paths:
        - 'tests/*'
        - 'example/*'
checks:
    php: true
coding_style:
    php:
        spaces:
            around_operators:
                concatenation: true
            other:
                after_type_cast: false
build:
    environment:
        mysql: 5.6
    project_setup:
        before:
            - "sudo /etc/init.d/mysql stop || true" 
            # Config
            - "echo '[mysqld]'            | sudo tee /etc/mysql/conf.d/replication.cnf"
            - "echo 'log-bin=mysql-bin'   | sudo tee -a /etc/mysql/conf.d/replication.cnf"
            - "echo 'server-id=1'         | sudo tee -a /etc/mysql/conf.d/replication.cnf"
            - "echo 'binlog-format = row' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
            - "echo 'max_allowed_packet= 64M' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
            - "echo 'innodb_log_file_size= 250M' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
            # Start mysql (avoid errors to have logs)
            - "sudo /etc/init.d/mysql restart || true"
            - "sudo tail -1000 /var/log/syslog"
            - "mysql --version"
            - "mysql -u root -e 'SELECT VERSION();'"
            - "mysql -u root -e \"GRANT ALL PRIVILEGES ON *.* TO ''@'localhost';\""
            - "mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -u root mysql"
            - mysql -e "SET PASSWORD FOR 'root'@'localhost' = password('root')"
    tests:
        override:
            -
                command: 'vendor/bin/phpunit --coverage-clover=clover.xml'
                coverage:
                    file: 'clover.xml'
                    format: 'clover'
    nodes:
        tests: true
        analysis:
            tests:
                override:
                    -
                        command: phpcs-run
                        use_website_config: true
                    - php-scrutinizer-run