持续集成(CI)服务的差异帮助程序
ci-diff-helper的Python项目详细描述
Diff Helper for Continuous Integration (CI) Services
对于一个开源项目,运行单元测试,系统测试,折磨测试, 模糊测试、集成测试、代码质量检查等很快就会变成 一项大任务。
为了限制这些工作所需的时间和资源, 此工具提供了一种确定哪些文件已更改并提供 用于这些更改的python api。此外,此库还提供 用作diffbase的相应提交sha(或其他工件)。
库支持(计划的)
安装
$ pip install --upgrade ci-diff-helper
查看它的实际操作
将test-appbranch设置为每次进行更改时都运行。 签出test-app中的latest Travis builds,然后 latest CircleCI builds和latest AppVeyor builds 查看工作时的计算值。
例如,在aTravis PR build:
Config object: <Travis (active=True)> ---------------------------------------- active: True base: 'test-app' branch: 'test-app' event_type: <TravisEventType.pull_request: 'pull_request'> in_pr: True is_merge: True merged_pr: None pr: 10 slug: 'dhermes/ci-diff-helper' tag: None ...
Config object: <Travis (active=True)> ---------------------------------------- active: True base: u'4a02445642735ba0d3ce5b944f4b2647b4c55813' branch: 'test-app' event_type: <TravisEventType.push: 'push'> in_pr: False is_merge: True merged_pr: 10 pr: None slug: 'dhermes/ci-diff-helper' tag: None ...
Config object: <CircleCI (active=True)> ---------------------------------------- active: True branch: 'test-app' is_merge: True tag: None ...
Config object: <AppVeyor (active=True)> ---------------------------------------- active: True branch: 'test-app' is_merge: True provider: <AppVeyorRepoProvider.github: 'github'> tag: None ...
许可证
apache 2.0-有关更多信息,请参见LICENSE。