wifictld-analyzer/.drone.yml

35 lines
857 B
YAML
Raw Normal View History

2018-06-02 01:00:54 +02:00
workspace:
base: /go
2019-02-28 16:22:55 +01:00
path: src/dev.sum7.eu/genofire/wifictld-analyzer
2018-06-02 01:00:54 +02:00
pipeline:
build:
image: golang:latest
commands:
- go get ./...
- go build
codestyle:
image: golang:latest
commands:
- go get github.com/client9/misspell/cmd/misspell
- misspell -error .
- if [ -n "$(gofmt -s -l .)" ]; then echo "Go code is not formatted, run 'gofmt -s -w .'" >&2; exit 1; fi
test:
image: golang:latest
commands:
- go get github.com/stretchr/testify/assert
- go test ./... -v -cover
test-race:
image: golang:latest
commands:
- go get github.com/stretchr/testify/assert
- go test ./... -v -race
2018-06-06 16:13:22 +02:00
release:
image: plugins/gitea-release
base_url: https://dev.sum7.eu
secrets: [ gitea_token ]
files: /go/bin/analyzer
draft: true
when:
event: tag