Skip to content

Commit 875ac1a

Browse files
committed
add travis/scrutinizer
1 parent ab7804e commit 875ac1a

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.scrutinizer.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
build:
2+
3+
environment:
4+
php:
5+
version: 7.1
6+
7+
nodes:
8+
analysis:
9+
project_setup:
10+
override: true
11+
tests:
12+
override:
13+
- php-scrutinizer-run
14+
-
15+
command: 'vendor/bin/phpunit --coverage-clover=some-file'
16+
coverage:
17+
file: 'some-file'
18+
format: 'clover'
19+
20+
filter:
21+
excluded_paths: [tests/*, database/*, config/*]
22+
23+
checks:
24+
25+
php:
26+
remove_extra_empty_lines: true
27+
remove_php_closing_tag: true
28+
remove_trailing_whitespace: true
29+
30+
fix_use_statements:
31+
remove_unused: true
32+
preserve_multiple: false
33+
preserve_blanklines: true
34+
order_alphabetically: true
35+
36+
fix_php_opening_tag: true
37+
fix_linefeed: true
38+
fix_line_ending: true
39+
fix_identation_4spaces: true
40+
fix_doc_comments: true

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: php
2+
php:
3+
- '7.1'
4+
- '7.2'
5+
6+
before_script:
7+
- "composer install"

0 commit comments

Comments
 (0)