.gitlab-ci.yml: run go fmt on all MRs
This commit is contained in:
parent
9fae3cd080
commit
d803a2f503
@ -1,4 +1,5 @@
|
|||||||
stages:
|
stages:
|
||||||
|
- go-fmt
|
||||||
- build-src
|
- build-src
|
||||||
- build-docker
|
- build-docker
|
||||||
- go-test
|
- go-test
|
||||||
@ -43,6 +44,13 @@ go-test:
|
|||||||
- mkdir -p src/gitlab.com/commento && cd src/gitlab.com/commento && ln -s $CI_PROJECT_DIR && cd $CI_PROJECT_NAME
|
- mkdir -p src/gitlab.com/commento && cd src/gitlab.com/commento && ln -s $CI_PROJECT_DIR && cd $CI_PROJECT_NAME
|
||||||
- make test
|
- make test
|
||||||
|
|
||||||
|
go-fmt:
|
||||||
|
stage: go-fmt
|
||||||
|
image: golang:1.10.2
|
||||||
|
script:
|
||||||
|
- cd api
|
||||||
|
- test -z $(go fmt)
|
||||||
|
|
||||||
docker-registry:
|
docker-registry:
|
||||||
stage: docker-registry
|
stage: docker-registry
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
|
Loading…
Reference in New Issue
Block a user