mariusz-kraj/gitlab-reporter
Composer 安装命令:
composer require mariusz-kraj/gitlab-reporter
包简介
Simple package for reporting bugs results to the Gitlab.com merge request in form of the comments
README 文档
README
Instalation
- Install from composer
composer require --dev "mariusz-kraj/gitlab-reporter:*"
- Add config file ".gitlab-ci-reporter.yml" in the root of your project:
reporters: phpunit: path: 'tests/_output/report.xml' failIfNotFound: true phpcs: path: 'build/phpcs.xml' failIfNotFound: true phpmd: path: 'build/phpmd.xml' failIfNotFound: true
- Add 'after_' to your "gitlab-ci.yml":
after_script: - bin/gitlab-reporter publish
-
Generate access code and add secret variable
- Go to access token
- Give access to API
- Copy token
- Go to the Project > Settings > CI\CD > Secret Variables
- Create ACCESS TOKEN variable with the token as a value
-
Create a new merge request and wait for comments!
To Do
- Tests
- Documentation
- Config validation
- PHPUnit Coverage reports
- Comments with attachments
- Changing state of merge request depending on the reports
- Instructions for contributors
Limitations
- Gitlab CI doesn't have environmental variable with merge request id,library is searching for MR from current branch. If there would be more than one MR from one branch (why?) it will take the first one and ignore rest
统计信息
- 总下载量: 1.56k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-20