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