campaigner/.gitlab-ci.yml

20 lines
313 B
YAML
Raw Permalink Normal View History

2020-04-27 11:23:05 +01:00
image: golang:1.14-buster
2020-04-27 11:28:20 +01:00
fmt:
stage: lint
script:
2020-04-27 11:29:12 +01:00
- go fmt -mod=vendor ./...
2020-04-27 11:28:20 +01:00
- if [[ -n $(git status --porcelain) ]]; then echo "The code is not correctly formatted"; exit 1; fi
2020-04-27 11:23:05 +01:00
build:
stage: build
script:
- make build
artifacts:
paths:
- campaigner
stages:
2020-04-27 11:28:20 +01:00
- lint
2020-04-27 11:23:05 +01:00
- build