-
Notifications
You must be signed in to change notification settings - Fork 57
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 #3 from eclipxe13/master
Improve docs, continuous integration and development
- Loading branch information
Showing
15 changed files
with
59 additions
and
61 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
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,15 +1,20 @@ | ||
filter: | ||
excluded_paths: | ||
- 'tests/*' | ||
- 'vendor/*' | ||
excluded_paths: | ||
- 'tests/' | ||
- 'vendor/' | ||
|
||
checks: | ||
php: | ||
code_rating: true | ||
duplication: true | ||
|
||
tools: | ||
php_code_sniffer: | ||
config: | ||
standard: "PSR2" | ||
external_code_coverage: true | ||
build: | ||
nodes: | ||
php73: | ||
environment: | ||
php: | ||
version: "7.3" | ||
pecl_extensions: | ||
- "zip" | ||
tests: | ||
override: | ||
- php-scrutinizer-run --enable-security-analysis | ||
- command: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover | ||
coverage: | ||
file: coverage.clover | ||
format: clover |
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,46 +1,29 @@ | ||
language: php | ||
|
||
# php compatibility | ||
php: | ||
- 7.2 | ||
- 7.3 | ||
|
||
env: | ||
- FULLBUILD_PHP_VERSION: 7.3 | ||
|
||
# This triggers builds to run on the new TravisCI infrastructure. | ||
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/ | ||
sudo: false | ||
|
||
# php compatibility | ||
php: | ||
- "7.2" | ||
- "7.3" | ||
|
||
cache: | ||
- directories: | ||
- $HOME/.composer | ||
|
||
before_script: | ||
# - travis_retry composer self-update | ||
- travis_retry composer install --no-interaction --prefer-dist | ||
- phpenv config-rm xdebug.ini | ||
- travis_retry composer install --no-interaction --prefer-dist | ||
- mkdir -p build | ||
|
||
script: | ||
- mkdir -p build | ||
- vendor/bin/phplint | ||
- | | ||
if [[ "${FULLBUILD_PHP_VERSION}" == "${TRAVIS_PHP_VERSION}" ]]; then | ||
vendor/bin/php-cs-fixer fix --verbose | ||
vendor/bin/phpcbf --colors -sp src/ tests/ | ||
php -dzend_extension=xdebug.so vendor/bin/phpunit --testdox --verbose --coverage-text --coverage-clover=build/tests/coverage.xml | ||
vendor/bin/phpstan.phar analyse --no-progress --level max src/ tests/ | ||
else | ||
vendor/bin/phpunit --testdox --verbose | ||
fi | ||
after_success: | ||
- | | ||
if [[ "${FULLBUILD_PHP_VERSION}" == "${TRAVIS_PHP_VERSION}" ]]; then | ||
mkdir -p build/ocular | ||
travis_retry composer require scrutinizer/ocular --working-dir=build/ocular --dev --no-interaction --prefer-dist | ||
build/ocular/vendor/bin/ocular code-coverage:upload --format=php-clover build/tests/coverage.xml | ||
fi | ||
- vendor/bin/php-cs-fixer fix --verbose --dry-run | ||
- vendor/bin/phpcs --colors -sp src/ tests/ | ||
- vendor/bin/phpunit --testdox --verbose | ||
- vendor/bin/phpstan.phar analyse --no-progress --verbose --level max src/ tests/ | ||
|
||
notifications: | ||
email: false |
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
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
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
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