tools: # external_code_coverage: true php_mess_detector: true php_code_sniffer: true sensiolabs_security_checker: true # php_code_coverage: true php_pdepend: true php_loc: enabled: true excluded_dirs: [vendor, tests] filter: excluded_paths: - 'tests/*' build: project_setup: before: - pecl install swoole - mysql -uroot -e "CREATE DATABASE IF NOT EXISTS ci;" - mysql -uroot -e 'CREATE TABLE `ci`.`hello` (`id` int(11) NOT NULL AUTO_INCREMENT,`content` varchar(255) NOT NULL,`user` varchar(255) NOT NULL,`created` datetime NOT NULL,PRIMARY KEY (`id`)) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;' tests: override: - command: vendor/bin/phpunit --coverage-clover=my-coverage-file coverage: file: my-coverage-file format: php-clover
checks: php: code_rating: true remove_extra_empty_lines: true remove_php_closing_tag: true remove_trailing_whitespace: true fix_use_statements: remove_unused: true preserve_multiple: false preserve_blanklines: true order_alphabetically: true fix_php_opening_tag: true fix_linefeed: true fix_line_ending: true fix_identation_4spaces: true fix_doc_comments: true filter: excluded_paths: - 'tests/*' build: environment: php: '5.6.0' php: '7.0.0' php: '7.1.0'