Browse Source

add drone

respondd-crashed v0.0.2
Martin/Geno 2 years ago
parent
commit
8512afbe6b
No known key found for this signature in database GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 27 additions and 0 deletions
  1. + 27
    - 0
      .drone.yml

+ 27
- 0
.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

Loading…
Cancel
Save