Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
82 additions
and
96 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,21 +1,16 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# Top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# JS / PHP | ||
[*.{js,php,phpt}] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 4 | ||
indent_size = tab | ||
tab_width = 4 | ||
|
||
# Composer | ||
[{composer.json}] | ||
[{*.json,*.yml,*.md}] | ||
indent_style = space | ||
indent_size = 2 |
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,9 +1,10 @@ | ||
/.docs export-ignore | ||
/tests export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/LICENSE export-ignore | ||
/phpstan.neon export-ignore | ||
/README.md export-ignore | ||
# Not archived | ||
.docs export-ignore | ||
tests export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.travis.yml export-ignore | ||
phpstan.neon export-ignore | ||
README.md export-ignore | ||
ruleset.xml export-ignore |
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
/vendor | ||
/composer.lock | ||
|
||
# Temp | ||
/temp | ||
# Tests | ||
/coverage.xml |
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,65 +1,60 @@ | ||
language: php | ||
php: | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
|
||
before_install: | ||
# Turn off XDebug | ||
- phpenv config-rm xdebug.ini || return 0 | ||
# Turn off XDebug | ||
- phpenv config-rm xdebug.ini || return 0 | ||
|
||
install: | ||
# Composer | ||
- travis_retry composer install --no-progress --prefer-dist | ||
# Composer | ||
- travis_retry composer install --no-progress --prefer-dist | ||
|
||
script: | ||
# Check all dependencies at master are up-to-date when running regular builds | ||
- | | ||
if [[ $TRAVIS_EVENT_TYPE == "cron" && $TRAVIS_BRANCH == "master" ]]; then | ||
composer outdated --direct --strict | ||
fi | ||
# Tests | ||
- composer run-script phpunit | ||
|
||
after_failure: | ||
# Print *.actual content | ||
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done | ||
# Tests | ||
- composer run-script tests | ||
|
||
jobs: | ||
include: | ||
- env: title="Lowest Dependencies 7.1" | ||
php: 7.1 | ||
install: | ||
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest | ||
script: | ||
- composer run-script phpunit | ||
|
||
- stage: Quality Assurance | ||
php: 7.1 | ||
script: | ||
- composer run-script qa | ||
|
||
- stage: Phpstan | ||
php: 7.1 | ||
script: | ||
- composer run-script phpstan-install | ||
- composer run-script phpstan | ||
|
||
- stage: Test Coverage | ||
if: branch = master AND type = push | ||
php: 7.1 | ||
script: | ||
- composer run-script coverage | ||
after_script: | ||
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar | ||
- php php-coveralls.phar --verbose --config tests/.coveralls.yml | ||
- env: title="Lowest Dependencies 7.1" | ||
php: 7.1 | ||
install: | ||
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest | ||
script: | ||
- composer run-script tests | ||
|
||
- stage: Quality Assurance | ||
php: 7.1 | ||
script: | ||
- composer run-script qa | ||
|
||
- stage: Phpstan | ||
php: 7.1 | ||
script: | ||
- composer run-script phpstan | ||
|
||
- stage: Test Coverage | ||
if: branch = master AND type = push | ||
php: 7.1 | ||
script: | ||
- composer run-script coverage | ||
after_script: | ||
- composer global require php-coveralls/php-coveralls ^2.1.0 | ||
- ~/.composer/vendor/bin/php-coveralls --verbose --config tests/.coveralls.yml | ||
|
||
- stage: Outdated Dependencies | ||
if: branch = master AND type = cron | ||
php: 7.1 | ||
script: | ||
- composer outdated --direct --strict | ||
|
||
allow_failures: | ||
- stage: Test Coverage | ||
- stage: Test Coverage | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/.composer/cache |
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
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
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,8 +1,11 @@ | ||
includes: | ||
- temp/phpstan/vendor/phpstan/phpstan-nette/extension.neon | ||
- temp/phpstan/vendor/phpstan/phpstan-nette/rules.neon | ||
- vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- vendor/phpstan/phpstan-nette/extension.neon | ||
- vendor/phpstan/phpstan-nette/rules.neon | ||
|
||
parameters: | ||
ignoreErrors: | ||
- '#Cannot call method getMessage\(\) on Throwable\|null#' | ||
- '~Parameter \#1 \$function of function call_user_func expects callable, array\<int, object\|string\> given.~' | ||
ignoreErrors: | ||
- '#^Cannot call method getMessage\(\) on Throwable\|null\.$#' | ||
- "#^Parameter \\#1 \\$function of function call_user_func expects callable, array\\(object, 'getSubscribedEvents'\\) given.#" | ||
# No replacement available | ||
- '#^Fetching class constant class of deprecated class Doctrine\\DBAL\\Tools\\Console\\Command\\ImportCommand\.$#' |
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
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
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,4 +1,4 @@ | ||
# for php-coveralls | ||
service_name: travis-ci | ||
coverage_clover: coverage.xml | ||
json_path: coverage.json | ||
json_path: coverage.json |
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,10 +1,6 @@ | ||
# Folders - recursive | ||
*.expected | ||
*.actual | ||
|
||
# Folders | ||
/tmp | ||
|
||
# Files | ||
/*.log | ||
/*.html | ||
/*.html |