mirror of
https://github.com/saccas/mjml-typo3.git
synced 2024-11-25 05:16:11 +01:00
TASK: Add php linting
To make sure there are no syntax errors in files.
This commit is contained in:
parent
c11283119b
commit
227ca8a035
2 changed files with 18 additions and 0 deletions
14
.travis.yml
Normal file
14
.travis.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
language: php
|
||||||
|
|
||||||
|
php:
|
||||||
|
- 5.6
|
||||||
|
- 7.0
|
||||||
|
- 7.1
|
||||||
|
- 7.2
|
||||||
|
|
||||||
|
install:
|
||||||
|
- composer install
|
||||||
|
|
||||||
|
script:
|
||||||
|
- composer lint
|
||||||
|
- composer cgl
|
|
@ -20,6 +20,10 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": [
|
"lint": [
|
||||||
|
"! find Classes -type f -name \"*.php\" -exec php -d error_reporting=32767 -l {} \\; 2>&1 >&- | grep \"^\"",
|
||||||
|
"! find Tests -type f -name \"*.php\" -exec php -d error_reporting=32767 -l {} \\; 2>&1 >&- | grep \"^\""
|
||||||
|
],
|
||||||
|
"cgl": [
|
||||||
"./vendor/bin/phpcs"
|
"./vendor/bin/phpcs"
|
||||||
],
|
],
|
||||||
"post-install-cmd": [
|
"post-install-cmd": [
|
||||||
|
|
Loading…
Reference in a new issue