-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-28161: [Travis] Enabled CS testing by php-cs-fixer
- Loading branch information
Andrew Longosz
committed
Nov 9, 2017
1 parent
684091e
commit 8dda0ed
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: php | ||
|
||
php: | ||
- 7.1 | ||
|
||
# test only master and stable branches (+ Pull requests) | ||
branches: | ||
only: | ||
- master | ||
- /^\d.\d+$/ | ||
|
||
install: | ||
# Disable XDebug for better performance | ||
- phpenv config-rm xdebug.ini | ||
# Avoid memory issues on composer install | ||
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
# Get latest composer build | ||
- travis_retry composer selfupdate | ||
# Install packages | ||
- travis_retry composer install --prefer-dist --no-interaction | ||
|
||
script: | ||
- vendor/bin/php-cs-fixer fix -v --dry-run --diff --show-progress=estimating | ||
|
||
notifications: | ||
email: false |