forked from zendframework/zend-developer-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request zendframework#213 from samsonasik/zf3
ZF3
- Loading branch information
Showing
49 changed files
with
2,440 additions
and
183 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
nbproject | ||
composer.lock | ||
.idea | ||
.buildpath | ||
.project | ||
|
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,43 @@ | ||
<?php | ||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->in('src') | ||
->in('test') | ||
->filter(function (SplFileInfo $file) { | ||
if (strstr($file->getPath(), 'compatibility')) { | ||
return false; | ||
} | ||
}); | ||
$config = Symfony\CS\Config\Config::create(); | ||
$config->level(null); | ||
$config->fixers( | ||
array( | ||
'braces', | ||
'duplicate_semicolon', | ||
'elseif', | ||
'empty_return', | ||
'encoding', | ||
'eof_ending', | ||
'function_call_space', | ||
'function_declaration', | ||
'indentation', | ||
'join_function', | ||
'line_after_namespace', | ||
'linefeed', | ||
'lowercase_keywords', | ||
'parenthesis', | ||
'multiple_use', | ||
'method_argument_space', | ||
'object_operator', | ||
'php_closing_tag', | ||
'remove_lines_between_uses', | ||
'short_array_syntax', | ||
'short_tag', | ||
'standardize_not_equal', | ||
'trailing_spaces', | ||
'unused_use', | ||
'visibility', | ||
'whitespacy_lines', | ||
) | ||
); | ||
$config->finder($finder); | ||
return $config; |
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 |
---|---|---|
@@ -1,19 +1,53 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7 | ||
|
||
before_install: | ||
- composer self-update | ||
- composer install --prefer-source | ||
- composer self-update | ||
|
||
script: | ||
- ./vendor/bin/phpunit | ||
install: | ||
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi | ||
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi | ||
- travis_retry composer install $COMPOSER_ARGS | ||
- composer show --installed | ||
|
||
matrix: | ||
allow_failures: | ||
- php: 7.0 | ||
fast_finish: true | ||
include: | ||
- php: 5.5 | ||
env: | ||
- DEPS=lowest | ||
- php: 5.5 | ||
env: | ||
- EXECUTE_CS_CHECK=true | ||
- DEPS=locked | ||
- php: 5.5 | ||
env: | ||
- DEPS=latest | ||
- php: 5.6 | ||
env: | ||
- DEPS=lowest | ||
- php: 5.6 | ||
env: | ||
- DEPS=locked | ||
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)" | ||
- PATH="$HOME/.local/bin:$PATH" | ||
- php: 5.6 | ||
env: | ||
- DEPS=latest | ||
- php: 7 | ||
env: | ||
- DEPS=lowest | ||
- php: 7 | ||
env: | ||
- DEPS=locked | ||
- php: 7 | ||
env: | ||
- DEPS=latest | ||
|
||
script: | ||
- ./vendor/bin/phpunit | ||
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi |
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
Oops, something went wrong.