4 Star 4 Fork 0

Gitee 极速下载 / servicecomb-service-center

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/apache/incubator-servicecomb-service-center
克隆/下载
CONTRIBUTING.md 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
little-cui 提交于 2018-11-15 22:34 . Create CONTRIBUTING.md

Contribution guide for Service-Center

Thanks everyone for contributing to Service-Center.

This document explains the process and best practices for submitting a Pull Request to the Service-Center project. This document can be treated as a reference for all contributors and be useful to new and infrequent submitters.

Cloning the repo and put it in $GOPATH

Clone the repo in a proper GOPATH

git clone https://github.com/apache/servicecomb-service-center.git $GOPATH/src/github.com/apache/servicecomb-service-center
cd $GOPATH/src/github.com/apache/servicecomb-service-center

Download the Dependencies

We use glide for dependency management, please follow the below steps for downloading all the dependencies required for building this project.

curl https://glide.sh/get | sh
glide install

Make your Changes

If this is a bug or a small fix then you can directly make the changes and ensure all the steps in this documentation and raise a PR, but If it is a feature or a big design or architecture change then we recommend you to raise an issue here or discuss the same in our mailing list.

Compile and running Test locally.

Once you are done with your changes then please follow the below checks to ensure the code quality before raising a PR.

go fmt ./...

go build -o service-center

Running UT in local env, this step assumes you have a docker running in your env.

bash -x scripts/ut_test_in_docker.sh 

Once UT has passed you can run the integration test to ensure the overall functionality is not altered.

bash -x scripts/integration_test.sh

Pushing the Code and Raising PR

Once you are done with compiling, UT and IT then you are good to go for raising the PR, please follow these guidelines for raising the PR.

1
https://gitee.com/mirrors/incubator-servicecomb-service-center.git
git@gitee.com:mirrors/incubator-servicecomb-service-center.git
mirrors
incubator-servicecomb-service-center
servicecomb-service-center
master

搜索帮助