Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (29 sloc) 1022 Bytes
# Run the below command when you edit .drone.yml
# drone secure --repo haya14busa/reviewdog --in .drone.sec.yaml
#
build:
test:
image: golang
commands:
- git submodule update --init --recursive
- go build -v $(go list ./... | grep -v "/vendor/")
- go get -d -v -t $(go list ./... | grep -v "/vendor/")
- go test -v -race $(go list ./... | grep -v "/vendor/")
- (! gofmt -s -d *.go cmd diff project | grep '^')
lint:
image: golang
environment:
- REVIEWDOG_GITHUB_API_TOKEN=$$REVIEWDOG_GITHUB_API_TOKEN
commands:
- go get github.com/haya14busa/reviewdog/cmd/reviewdog
- go get github.com/golang/lint/golint
- go get honnef.co/go/unused/cmd/unused
- go get honnef.co/go/simple/cmd/gosimple
- go get honnef.co/go/staticcheck/cmd/staticcheck
- go get github.com/kisielk/errcheck
- reviewdog -ci=droneio
when:
event: pull_request
notify:
gitter:
webhook: "https://webhooks.gitter.im/e/8dfc2f32c464a65d6da2"