contao-community-alliance / build-system-tool-travis-configuration-check
dev-master / 1.0.x-dev
2014-10-11 09:57 UTC
Requires
- php: >=5.3
- symfony/console: ~2.3
- symfony/yaml: ~2.3
Requires (Dev)
This package is not auto-updated.
Last update: 2022-02-01 12:40:15 UTC
README
验证.travis.yml与composer.json的一致性。
此检查执行多个测试。
第一个测试确保在composer.json中设置了PHP版本,并且这个版本也被.travis.yml文件覆盖。
第二个测试确保.travis.yml文件中允许的所有版本在travis-ci上可用。
可选地测试,composer.json和.travis.yml中未设置任何不再维护的PHP版本,并在提及不再维护的PHP版本时出错。目前这意味着任何低于PHP 5.4的版本。
使用方法
在composer.json
的require-dev
部分添加
"contao-community-alliance/build-system-tool-travis-configuration-check": "~1.0"
调用二进制文件
./vendor/bin/check-travis-configuration.php
可选地传递要检查的项目根目录
./vendor/bin/check-travis-configuration.php /path/to/some/project
此外检查不维护的PHP版本
./vendor/bin/check-travis-configuration.php --unmaintained-version-error
此外检查另一个项目中不维护的PHP版本
./vendor/bin/check-travis-configuration.php --unmaintained-version-error /path/to/some/project