-
-
Notifications
You must be signed in to change notification settings - Fork 398
/
.drone.yml
32 lines (31 loc) 路 1.04 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Run the below command when you edit .drone.yml
# drone secure --repo haya14busa/reviewdog --in .drone.sec.yaml
#
build:
test:
image: golang:1.9
commands:
- go get -u github.com/golang/dep/...
- dep ensure
- go build -v $(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
# test
- cd _testdata && golint . | reviewdog -f=golint -ci=droneio
when:
event: pull_request
notify:
gitter:
webhook: "https://webhooks.gitter.im/e/8dfc2f32c464a65d6da2"