2018-10-09 00:37:39 +00:00
|
|
|
stages:
|
|
|
|
- lint
|
|
|
|
- build
|
|
|
|
|
|
|
|
lint:
|
|
|
|
image: golang:latest
|
|
|
|
stage: lint
|
2018-10-09 00:39:16 +00:00
|
|
|
before_script:
|
2018-10-09 00:43:44 +00:00
|
|
|
- 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
|
2018-10-09 00:37:39 +00:00
|
|
|
script:
|
|
|
|
- gofmt -d .
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
image: golang:latest
|
2018-10-09 00:39:16 +00:00
|
|
|
before_script:
|
2018-10-09 00:43:44 +00:00
|
|
|
- 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
|
2018-10-09 00:37:39 +00:00
|
|
|
script:
|
|
|
|
- go get ./... # TODO: Improve how dependencies are handled
|
2018-10-09 00:48:52 +00:00
|
|
|
- cd signald-cli
|
|
|
|
- go build -o "${CI_PROJECT_DIR}/signald-cli" signald-cli/
|
2018-10-09 00:37:39 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- signald-cli
|
|
|
|
expire_in: 1 month
|