From d182a588a247e2c3fc3e31dc4d85cb5f3998414d Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Wed, 18 Apr 2018 15:08:34 +0200 Subject: [PATCH] add drone --- .drone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..8c3e7de --- /dev/null +++ b/.drone.yml @@ -0,0 +1,27 @@ +workspace: + base: /go + path: src/github.com/FreifunkBremen/yanic + +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 +