Skip to content

Commit c8a9168

Browse files
authored
Merge pull request #143 from TomasVotruba/ecs-fix
EasyCodingStandard - config path fixes + apply coding style
2 parents 996d0fb + d613cfc commit c8a9168

Some content is hidden

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

48 files changed

+307
-416
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ php:
77
matrix:
88
include:
99
- php: 7.1
10-
env: STATIC_ANALYSIS=true
10+
env: ECS=true
11+
- php: 7.1
12+
env: PHPSTAN=true
1113

1214
cache:
1315
directories:
1416
- $HOME/.composer/cache
1517

1618
install:
1719
- composer install --no-interaction
18-
# coding style
19-
- if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
20+
- if [[ $ECS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
2021

2122
script:
2223
- vendor/bin/phpunit --coverage-clover=coverage.xml -v
23-
# coding style
24-
- if [[ $STATIC_ANALYSIS != "" ]]; then temp/ecs/bin/ecs check src tests; fi
25-
- if [[ $STATIC_ANALYSIS != "" ]]; then vendor/bin/phpstan analyse src --level max --configuration phpstan.neon; fi
24+
- if [[ $ECS != "" ]]; then temp/ecs/bin/ecs check src tests; fi
25+
- if [[ $PHPSTAN != "" ]]; then vendor/bin/phpstan analyse src --level max --configuration phpstan.neon; fi
2626

2727
after_script:
2828
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar;

0 commit comments

Comments
 (0)