This repository was archived by the owner on Jan 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Add license sniff and fixes #2
Closed
geerteltink
wants to merge
25
commits into
zendframework:master
from
geerteltink:feature/license-sniff
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
7caa54e
Add license sniff and fixes
geerteltink 841e6bf
Add sniff + fix for invalid date in COPYING.md and LICENSE.md
geerteltink 297d314
Update Travis-CI config
geerteltink e63eef6
Add missing composer scripts
geerteltink eab40db
Improve consistency, formatting and docblocks
geerteltink a2159ca
Use standard phpunit assertions for backwards compatibility
geerteltink 7575bca
Add missing travis-ci global env's
geerteltink 40d8951
Fix location of ZendCodingStandard ruleset
geerteltink 189a37b
Fix code coverage whitelist
geerteltink 7b5e155
Enable coveralls
geerteltink d993b37
Enforce checking and updating license and copying file
geerteltink 82d08bf
Detect and replace deprecated link tag with see tag
geerteltink 8f30be0
Globally exclude TestAssets
geerteltink dc8b879
Add more tests and a fix for SpacingAfterComment
geerteltink 4f309af
Enable excluding TestAsset paths again :$
geerteltink 49c98f6
Bring readme inline with other components
geerteltink 71f10ac
Update to PHP_CodeSniffer 3.x
geerteltink 5a67fd3
Truncate copyright text
geerteltink 441ee8a
s/COPYING/COPYRIGHT/
geerteltink fbd5073
Remove the dummy ruleset and use only the real ruleset
geerteltink a075478
Update the TestCase for PHP_CodeSniffer 3
geerteltink 97b0420
Run coverage on PHP 7.1
geerteltink 542d86b
Use proper namespace for tests
geerteltink 2a8be4c
Use only 1 autoloader when running tests
geerteltink e8e2d85
Disable test coverage
geerteltink File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,2 @@ | ||
coverage_clover: clover.xml | ||
json_path: coveralls-upload.json |
This file contains hidden or 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,5 @@ | ||
/clover.xml | ||
/composer.lock | ||
/coveralls-upload.json | ||
/phpunit.xml | ||
/vendor/ |
This file contains hidden or 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,77 @@ | ||
sudo: false | ||
|
||
language: php | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- vendor | ||
|
||
env: | ||
global: | ||
- COMPOSER_ARGS="--no-interaction" | ||
- COVERAGE_DEPS="satooshi/php-coveralls" | ||
- LEGACY_DEPS="phpunit/phpunit" | ||
|
||
matrix: | ||
include: | ||
- php: 5.6 | ||
env: | ||
- DEPS=lowest | ||
- php: 5.6 | ||
env: | ||
- DEPS=locked | ||
- php: 5.6 | ||
env: | ||
- DEPS=latest | ||
- php: 7 | ||
env: | ||
- DEPS=lowest | ||
- php: 7 | ||
env: | ||
- DEPS=locked | ||
- php: 7 | ||
env: | ||
- DEPS=latest | ||
- php: 7.1 | ||
env: | ||
- DEPS=lowest | ||
- php: 7.1 | ||
env: | ||
- DEPS=locked | ||
- php: 7.1 | ||
env: | ||
- DEPS=latest | ||
#- TEST_COVERAGE=true | ||
|
||
before_install: | ||
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi | ||
- travis_retry composer self-update | ||
|
||
install: | ||
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs | ||
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi | ||
- 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 | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi | ||
- composer show | ||
|
||
script: | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi | ||
- composer cs-check | ||
|
||
after_script: | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi | ||
|
||
notifications: | ||
email: false | ||
irc: | ||
channels: | ||
- "irc.freenode.org#zftalk.dev" | ||
on_success: change | ||
on_failure: always | ||
slack: | ||
rooms: | ||
- secure: "fh+J7c7A9f7Sje2h9M00mw9UyeKQ2l1FyGvOwQ50CPHvf0u7bb1OV3sEqTukiwSNEQNmJ5C3QuJpaxkIeDjI8LJpeNderWeu6NH2O5OedSEElHmc7RsBygfiHM05hWnv10ddDxJ+YtmuNjpkXIoXcBdHby+eRBJ09YStVhnIwQakBbKBH7Idlitn23QYl4VZeA3jTcGsHhCtGjpjDt4sohs/RJWgGfAYTSKcjSLdFWWdg2G8PRPKTyQkR+nFd92lvVeRteg0VzxGJqKXoeJP3B0WYB7emQJho+ly4DZFkL+wJZPtcEHCi/ne9l/OaVy6XGhbiDVXxxpyexD4cmGySdjpsYirXqxjS6V8kfWn3JVbCxipI518zJq5Rb3JOCVcdoo7P/xXqYj+fihMbGfxBorUqwm8uBlCblRGXJ1QcVRsi52u0zMJN+QQ/gYHf0gBoF9IbYvQDeshZT80TnYUy2/om/j9xTUfZMdEKTRQWrj9LbsNKY619gZt2u/b2tbcWdjFiPA/Uxa2VjphHz8LFuHaU43/km4swLhthkPowdZLozuyJjksbJcjH7izh3Hxd8oRxBFrqdfuPgh3owQyW75wvG/TGWnNXMqO66OuXXaJKAomBnVBjGB6DBo3TnPzEyKUkLi54AVQIfaDPqQH8yec5ugogOYrrQDLIT1kdVY=" | ||
on_success: change | ||
on_failure: always |
This file contains hidden or 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 @@ | ||
Copyright (c) 2016-2017, Zend Technologies USA, Inc. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,17 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Zend Framework Coding Standard"> | ||
<!-- Load ruleset --> | ||
<rule ref="./src/ZendCodingStandard/ruleset.xml"/> | ||
|
||
<arg value="ps"/> | ||
|
||
<!-- Check copyright and license files --> | ||
<file>./COPYRIGHT.md</file> | ||
<file>./LICENSE.md</file> | ||
<!-- Paths to check --> | ||
<file>./src</file> | ||
<file>./test</file> | ||
|
||
<!-- Exclude test assets --> | ||
<exclude-pattern>*/TestAsset/*</exclude-pattern> | ||
</ruleset> |
This file contains hidden or 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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/squizlabs/php_codesniffer/autoload.php" | ||
colors="true"> | ||
<testsuites> | ||
<testsuite name="Zend\\CodingStandard\\Tests"> | ||
<directory>test/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line on down can be removed now. 🙌