signald-go/.gitlab-ci.yml
Finn eb6a7e71c3 Move cmd to ./cmd/signald-cli
cobra is trying to encourage an annoying file layout
2018-10-08 18:03:28 -07:00

28 lines
710 B
YAML

stages:
- lint
- build
lint:
image: golang:latest
stage: lint
before_script:
- mkdir -p /go/src/git.callpipe.com/finn/signald-go
- cp -r * /go/src/git.callpipe.com/finn/signald-go
- cd /go/src/git.callpipe.com/finn/signald-go
script:
- gofmt -d .
build:
stage: build
image: golang:latest
before_script:
- mkdir -p /go/src/git.callpipe.com/finn/signald-go
- cp -r * /go/src/git.callpipe.com/finn/signald-go
- cd /go/src/git.callpipe.com/finn/signald-go
script:
- go get ./... # TODO: Improve how dependencies are handled
- go build -o "${CI_PROJECT_DIR}/signald-cli" ./cmd/signald-cli
artifacts:
paths:
- signald-cli
expire_in: 1 month