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