Skip to content

Commit 5da0d6a

Browse files
committed
run php-cs-fixer
1 parent 558ec61 commit 5da0d6a

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.travis.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,30 @@ matrix:
77
include:
88
- php: 5.6
99
sudo: false
10-
env: SYMFONY_VERSION=2.8.* FUNCTIONAL_TESTS=false UNIT_TESTS=true
10+
env: SYMFONY_VERSION=2.8.* UNIT_TESTS=true
1111
- php: 7.1
1212
sudo: false
13-
env: SYMFONY_VERSION=3.0.* FUNCTIONAL_TESTS=false UNIT_TESTS=false PHPSTAN=true
13+
env: SYMFONY_VERSION=3.0.* PHPSTAN=true
14+
- php: 7.1
15+
sudo: false
16+
env: SYMFONY_VERSION=3.0.* PHP_CS_FIXER=true
1417
- php: 7.0
1518
sudo: false
16-
env: SYMFONY_VERSION=2.8.* FUNCTIONAL_TESTS=false UNIT_TESTS=true
19+
env: SYMFONY_VERSION=2.8.* UNIT_TESTS=true
1720
- php: 5.6
1821
sudo: false
19-
env: SYMFONY_VERSION=3.0.* FUNCTIONAL_TESTS=false UNIT_TESTS=true SYMFONY_DEPRECATIONS_HELPER=weak
22+
env: SYMFONY_VERSION=3.0.* UNIT_TESTS=true SYMFONY_DEPRECATIONS_HELPER=weak
2023
- php: 7.0
2124
sudo: false
22-
env: SYMFONY_VERSION=3.0.* FUNCTIONAL_TESTS=false UNIT_TESTS=true SYMFONY_DEPRECATIONS_HELPER=weak
25+
env: SYMFONY_VERSION=3.0.* UNIT_TESTS=true SYMFONY_DEPRECATIONS_HELPER=weak
2326
- php: 7.0
2427
sudo: required
2528
services: docker
26-
env: SYMFONY_VERSION=2.8.* FUNCTIONAL_TESTS=true UNIT_TESTS=false
29+
env: SYMFONY_VERSION=2.8.* FUNCTIONAL_TESTS=true
2730
- php: 7.0
2831
sudo: required
2932
services: docker
30-
env: SYMFONY_VERSION=3.0.* FUNCTIONAL_TESTS=true UNIT_TESTS=false
33+
env: SYMFONY_VERSION=3.0.* FUNCTIONAL_TESTS=true
3134

3235
cache:
3336
directories:
@@ -46,5 +49,8 @@ script:
4649
# misssing pkg/amqp-ext pkg/job-queue pkg/redis
4750
- if [ "$PHPSTAN" = true ]; then ./bin/phpstan analyse -l 1 -c phpstan.neon pkg/enqueue pkg/psr-queue pkg/fs pkg/simple-client; fi
4851
- if [ "$PHPSTAN" = true ]; then ./bin/phpstan analyse -l 1 -c phpstan.neon pkg/stomp pkg/dbal pkg/enqueue-bundle pkg/null pkg/sqs pkg/test; fi
52+
- if [ "$PHP_CS_FIXER" = true ]; then IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${COMMIT_RANGE}")); unset IFS; fi
53+
- if [ "$PHP_CS_FIXER" = true ]; then ./bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run --stop-on-violation --using-cache=no --path-mode=intersection -- "${COMMIT_SCA_FILES[@]}"; fi
4954
- if [ "$UNIT_TESTS" = true ]; then bin/phpunit --exclude-group=functional; fi
50-
- if [ "$FUNCTIONAL_TESTS" = true ]; then bin/dev -t; fi
55+
- if [ "$FUNCTIONAL_TESTS" = true ]; then bin/dev -t; fi
56+

0 commit comments

Comments
 (0)