Passed
Pull Request — master (#4)
by Moln
01:24
created

Repository Config

build:
    environment:
        variables:
            MYSQL_ROOT_PASSWORD: root
            MYSQL_DATABASE: mysqlreplication_test
        mysql: 5.7
        redis: false
    nodes:

        tests: 
            tests:
            
                override:
                    - netstat -lntp
                    - mysql -h127.0.0.1 -uroot -proot -e "show databases;"
                    - mysql -h127.0.0.1 -uroot -proot -e "show binary logs;"
                    #- vendor/bin/phpunit
                    
    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';"

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

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