image: golang:1.11
stages:
- build
- test
build:
stage: build
script:
- go build ./...
test:
stage: test
- test -z "$(gofmt -l . | tee /dev/stderr)"
- go test ./...