Skip to content

Commit

Permalink
Added license-check to QA toolchain
Browse files Browse the repository at this point in the history
- Now require `malukehno/docheader` in development.
- Added configuration via `.docheader`.
- `license-check` will check all `src/` files.
- `license-check-all` will check all `src/` and `test/` files; there are
  test assets that are _expected_ to fail.
- Travis runs `license-check` for targets doing CS checks.
  • Loading branch information
weierophinney committed Feb 16, 2017
1 parent b67064f commit 190ffd8
Show file tree
Hide file tree
Showing 54 changed files with 488 additions and 254 deletions.
5 changes: 5 additions & 0 deletions .docheader
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* @see https://github.com/zendframework/zend-config for the canonical source repository
* @copyright Copyright (c) %regexp:(20\d{2}-)?20\d{2}% Zend Technologies USA Inc. (http://www.zend.com)
* @license https://github.com/zendframework/zend-config/blob/master/LICENSE.md New BSD License
*/
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ install:
script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
- if [[ $CHECK_CS == 'true' ]]; then composer license-check ; fi
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then travis_retry curl -sSL https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh | bash ; fi

after_script:
Expand Down
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
"psr/container": "^1.0"
},
"require-dev": {
"zendframework/zend-coding-standard": "~1.0.0",
"zendframework/zend-filter": "^2.7.1",
"zendframework/zend-i18n": "^2.7.3",
"zendframework/zend-json": "^2.6.1 || ^3.0",
"zendframework/zend-servicemanager": "^2.7.8 || ^3.2.1",
"phpunit/phpunit": "^5.7 || ^6.0",
"zendframework/zend-coding-standard": "~1.0.0"
"malukenho/docheader": "^0.1.5",
"phpunit/phpunit": "^5.7 || ^6.0"
},
"conflict": {
"container-interop/container-interop": "<1.2.0"
Expand All @@ -49,11 +50,14 @@
},
"scripts": {
"check": [
"@license-check",
"@cs-check",
"@test"
],
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"license-check": "docheader check src/",
"license-check-all": "docheader check src/ test/",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
"upload-coverage": "coveralls -v"
Expand Down
327 changes: 326 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 190ffd8

Please sign in to comment.