.gitlab-ci.yml: run go fmt on all MRs

This commit is contained in:
Adhityaa 2018-06-17 17:48:35 +05:30
parent 9fae3cd080
commit d803a2f503

View File

@ -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