.gitlab-ci.yml: run go fmt on all MRs
This commit is contained in:
parent
9fae3cd080
commit
d803a2f503
@ -1,4 +1,5 @@
|
||||
stages:
|
||||
- go-fmt
|
||||
- build-src
|
||||
- build-docker
|
||||
- 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
|
||||
- make test
|
||||
|
||||
go-fmt:
|
||||
stage: go-fmt
|
||||
image: golang:1.10.2
|
||||
script:
|
||||
- cd api
|
||||
- test -z $(go fmt)
|
||||
|
||||
docker-registry:
|
||||
stage: docker-registry
|
||||
image: docker:stable
|
||||
|
Loading…
Reference in New Issue
Block a user