Skip to content

Commit 72b35de

Browse files
authored
Merge pull request #23 from magento/codestyle-checks
Added code style checks
2 parents e47f12b + bcaaa6c commit 72b35de

File tree

306 files changed

+1013
-1535
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+1013
-1535
lines changed

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
language: php
22

33
php:
4-
- '7.1'
5-
- '7.2'
64
- '7.3'
75

86
matrix:
@@ -11,4 +9,12 @@ matrix:
119
before_install:
1210
- composer install --prefer-source --no-interaction --dev
1311

14-
script: php vendor/phpunit/phpunit/phpunit --configuration tests/Unit/phpunit.xml.dist
12+
jobs:
13+
include:
14+
- name: "Unit tests"
15+
script: php vendor/bin/phpunit --configuration tests/Unit/phpunit.xml.dist
16+
- name: "Code style"
17+
script: php vendor/bin/phpcs --standard=psr12 src/ --ignore=*.min.css
18+
- name: "Tests code style"
19+
script: php vendor/bin/phpcs --standard=psr12 tests/ --ignore=/_files/ -n
20+

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"require": {
1111
"php": "~7.1.3||~7.2.0||~7.3.0",
1212
"tomzx/php-semver-checker": "^0.13.0",
13-
"symfony/console": "~4.1.0",
13+
"symfony/console": "~4.4.0",
1414
"phpstan/phpdoc-parser": "^0.3.5",
1515
"wikimedia/less.php": "~1.8.0"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "^6.5.0",
19-
"allure-framework/allure-phpunit": "^1.2.0",
20-
"zendframework/zend-stdlib": "^3.2.1"
19+
"zendframework/zend-stdlib": "^3.2.1",
20+
"squizlabs/php_codesniffer": "^3.5"
2121
},
2222
"autoload": {
2323
"psr-4": {

0 commit comments

Comments
 (0)