Skip to content

Commit a21baf7

Browse files
committed
Add travis and scrutinizer configs and update dependencies.
1 parent 07f1168 commit a21baf7

File tree

4 files changed

+143
-120
lines changed

4 files changed

+143
-120
lines changed

.scrutinizer.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
filter:
2+
paths: [src/*]
3+
4+
checks:
5+
php:
6+
remove_extra_empty_lines: true
7+
remove_php_closing_tag: true
8+
remove_trailing_whitespace: true
9+
fix_use_statements:
10+
remove_unused: true
11+
preserve_multiple: false
12+
preserve_blanklines: true
13+
order_alphabetically: true
14+
fix_php_opening_tag: true
15+
fix_linefeed: true
16+
fix_line_ending: true
17+
fix_identation_4spaces: true
18+
fix_doc_comments: true

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
dist: xenial
2+
sudo: required
3+
language: php
4+
5+
cache:
6+
directories:
7+
- "$HOME/.composer/cache"
8+
9+
php:
10+
- 7.0
11+
- 7.1
12+
- nightly
13+
- hhvm
14+
15+
matrix:
16+
allow_failures:
17+
- php: nightly
18+
- php: hhvm
19+
fast_finish: true
20+
21+
git:
22+
depth: 1
23+
24+
install:
25+
- travis_retry composer install --prefer-dist --no-interaction
26+
27+
script:
28+
- composer check-code
29+
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then composer test-cov; else composer test; fi
30+
31+
after_script:
32+
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then composer test-cov-upload; fi

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
},
2929
"require-dev": {
3030
"jakub-onderka/php-parallel-lint": "^0.9.2",
31-
"phpunit/phpunit": "^6.1",
32-
"squizlabs/php_codesniffer": "^2.9"
31+
"phpunit/phpunit": "^6.3",
32+
"squizlabs/php_codesniffer": "^3.0"
3333
},
3434
"autoload": {
3535
"psr-4": {

0 commit comments

Comments
 (0)