CI:gitlab + gitlab-ci + slack

最近在熟悉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/linux

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  on other machines after deleting the remote branch on the server.
||| After deleting the local branch with  and deleting the remote branch with  
other machines may still have "obsolete tracking branches" (to see them do ).
To get rid of these do git fetch --all --prunegit branch -dgit push origin --deletegit branch -agit fetch --all --prune
git fetch origin develop:develop
git rebase develop
gitlab badge

https://gitlab.moonx.cn/%{project_path}/badges/%{default_branch}/pipeline.svg
https://gitlab.moonx.cn/%{project_path}/badges/%{default_branch}/coverage.svg
相关文章
相关标签/搜索