mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
analysis.go: use x/tools/go/analysis/multichecker to run analysis tools
This pattern has a number of advantages: it tracks the versions of the tools in go.mod, it doesn't require installing anything in CI, it runs all analysis passes at once, and it lets us add custom ones easily.
This commit is contained in:

committed by
Filippo Valsorda

parent
4ffcbacbb0
commit
82ea753aa2
@@ -1,11 +1,8 @@
|
||||
language: go
|
||||
sudo: false
|
||||
go: stable
|
||||
install: (cd && go get honnef.co/go/tools/cmd/staticcheck)
|
||||
|
||||
script:
|
||||
- go vet
|
||||
- staticcheck ./...
|
||||
- go run analysis.go ./...
|
||||
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o "mkcert-$(git describe --tags)-linux-amd64"
|
||||
- CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -o "mkcert-$(git describe --tags)-linux-arm"
|
||||
- CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o "mkcert-$(git describe --tags)-darwin-amd64"
|
||||
|
Reference in New Issue
Block a user