最近在熟悉gitlab + gitlab-ci + slack,实现可持续集成,对开发流程实现自动化。

1
. Ubuntu 16.04搭建GitLab服务器 参考:https://www.linuxidc.com/Linux/2018-01/150319.htm 2. This job is stuck, because the project doesn't have any runners online assigned to it. Go to Runners page 参考:https://stackoverflow.com/questions/53370840/this-job-is-stuck-because-the-project-doesnt-have-any-runners-online-assigned 3. 使用GitLab CI 持续集成 参考:http://www.fridayhaohao.com/articles/28/ 注册runner,code .gitlab-ci.yml,使gitlab OK 4.生成Badges徽章 参考:https://about.gitlab.com/2016/11/03/publish-code-coverage-report-with-gitlab-pages/

1. https://docs.gitlab.com/ee/

2. Run untagged jobs
Indicates whether this runner can pick jobs without tags
3. Then Edit < Settings->General->Badges-> >, add pipeline, coverage
4. Edit < Settings->CI/CD->Test coverage parsing >   A regular expression that will be used to find the test coverage output in the job trace. Leave blank to disable
5. Add push notify. < Settings->Integrations->Add webhook >
https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely
Don't forget to do a git fetch --all --prune on other machines after deleting the remote branch on the server.
||| After deleting the local branch with git branch -d and deleting the remote branch with git push origin --delete 
other machines may still have "obsolete tracking branches" (to see them do git branch -a).
To get rid of these do git fetch --all --prune

 

转载于:https://www.cnblogs.com/cjyp/p/10408605.html

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐