Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 73e6593

Browse files
committed
Added license docblock checks
1 parent ea4c432 commit 73e6593

18 files changed

+382
-61
lines changed

.docheader

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* @see https://github.com/zendframework/zend-expressive-zendviewrenderer for the canonical source repository
3+
* @copyright Copyright (c) %regexp:(20\d{2}-)?20\d{2}% Zend Technologies USA Inc. (http://www.zend.com)
4+
* @license https://github.com/zendframework/zend-expressive-zendviewrenderer/blob/master/LICENSE.md New BSD License
5+
*/

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ install:
6666
script:
6767
- composer test
6868
- if [[ $CHECK_CS == 'true' ]]; then composer cs ; fi
69+
- if [[ $CHECK_CS == 'true' ]]; then composer license-check ; fi
6970

7071
notifications:
7172
email: true

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
},
3030
"require-dev": {
3131
"phpunit/phpunit": "^5.7",
32-
"zendframework/zend-coding-standard": "~1.0.0"
32+
"zendframework/zend-coding-standard": "~1.0.0",
33+
"malukenho/docheader": "^0.1.5"
3334
},
3435
"autoload": {
3536
"psr-4": {
@@ -43,11 +44,13 @@
4344
},
4445
"scripts": {
4546
"check": [
47+
"@license-check",
4648
"@cs",
4749
"@test"
4850
],
4951
"cs": "phpcs",
5052
"cs-fix": "phpcbf",
51-
"test": "phpunit"
53+
"license-check": "docheader check src/ test/",
54+
"test": "phpunit --colors=always"
5255
}
5356
}

composer.lock

Lines changed: 327 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)