Use staticcheck in drone
This commit is contained in:
parent
8a56f02fc5
commit
13045e3d98
|
@ -10,10 +10,11 @@ pipeline:
|
|||
event: [ push, pull_request ]
|
||||
image: golang
|
||||
commands:
|
||||
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor -P tmp/
|
||||
- chmod a+x tmp/tor
|
||||
- go mod download
|
||||
- go get -u golang.org/x/lint/golint
|
||||
- go get -u
|
||||
quality:
|
||||
when:
|
||||
repo: openprivacy/connectivity
|
||||
|
@ -21,8 +22,7 @@ pipeline:
|
|||
event: [ push, pull_request ]
|
||||
image: golang
|
||||
commands:
|
||||
- go list ./... | xargs go vet
|
||||
- go list ./... | xargs golint -set_exit_status
|
||||
- staticcheck ./...
|
||||
units-tests:
|
||||
when:
|
||||
repo: openprivacy/connectivity
|
||||
|
|
Loading…
Reference in New Issue