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 #789 from ApiGen/cleanup
General cleanup
- Loading branch information
Showing
216 changed files
with
138 additions
and
1,491 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,3 +1,2 @@ | ||
/vendor | ||
/composer.lock | ||
/*.phar | ||
composer.lock |
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,3 @@ | ||
filter: | ||
excluded_paths: | ||
- tests/* | ||
|
||
before_commands: | ||
- "composer install --prefer-source" | ||
|
||
tools: | ||
external_code_coverage: | ||
timeout: 900 | ||
sensiolabs_security_checker: true | ||
php_code_coverage: | ||
enabled: true | ||
php_analyzer: | ||
config: | ||
verify_php_doc_comments: | ||
suggest_more_specific_types: false | ||
|
||
checks: | ||
php: | ||
code_rating: true |
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,45 +1,34 @@ | ||
language: php | ||
|
||
php: | ||
- 7.1 | ||
|
||
sudo: false | ||
|
||
env: | ||
global: | ||
- DEFAULT=1 | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
include: | ||
- php: 7.1 | ||
env: PHPCS=1 DEFAULT=0 COVERALLS=1 | ||
|
||
allow_failures: | ||
- env: COVERALLS=1 DEFAULT=0 | ||
# add variables to enable coverage, coding standard check and static analysis | ||
env: PHPUNIT_FLAGS="--coverage-clover coverage.xml" CHECK_CS=1 RUN_PHPSTAN=1 | ||
|
||
before_script: | ||
- composer self-update | ||
- composer install --prefer-dist --no-interaction | ||
|
||
- sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev satooshi/php-coveralls:dev-master; fi" | ||
- sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi" | ||
|
||
- phpenv rehash | ||
- set +H | ||
install: | ||
# install composer dependencies | ||
- composer install | ||
|
||
script: | ||
- sh -c "if [ '$DEFAULT' = '1' ]; then phpunit; fi" | ||
|
||
- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=PSR2 ./src; fi" | ||
|
||
- sh -c "if [ '$COVERALLS' = '1' ]; then phpunit --coverage-clover build/logs/clover.xml; fi" | ||
- sh -c "if [ '$COVERALLS' = '1' ]; then vendor/bin/coveralls -c .coveralls.yml -v; fi" | ||
|
||
notifications: | ||
email: false | ||
# run tests | ||
- vendor/bin/phpunit $PHPUNIT_FLAGS | ||
# check coding standard (defined in composer.json "scripts" section) | ||
- if [[ $CHECK_CS = 1 ]]; then composer check-cs; fi | ||
# check with phpstan (defined in composer.json "scripts" section) | ||
- if [[ $RUN_PHPSTAN = 1 ]]; then composer phpstan; fi | ||
|
||
after_script: | ||
# upload coverage.xml file to Scrutinizer to analyze it | ||
- | | ||
if [[ $PHPUNIT_FLAGS != "" ]]; then | ||
wget https://scrutinizer-ci.com/ocular.phar | ||
php ocular.phar code-coverage:upload --format=php-clover coverage.xml | ||
fi | ||
- ./update-gh-page.sh | ||
- ./generate-api.sh | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
parameters: | ||
ignoreErrors: | ||
- "#does not call parent constructor from#" | ||
- "#getDocComment#" |
This file was deleted.
Oops, something went wrong.
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
7 changes: 0 additions & 7 deletions
7
src/Configuration/Readers/Exceptions/FileNotReadableException.php
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
7 changes: 0 additions & 7 deletions
7
src/Configuration/Readers/Exceptions/MissingFileException.php
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
Oops, something went wrong.