Skip to content
Permalink
Browse files

Add staticcheck to CI (#171)

  • Loading branch information...
FiloSottile committed Jul 5, 2019
1 parent 4d2ab59 commit 1f0796c9266088357894ebd6570af235c36c81f6
Showing with 5 additions and 4 deletions.
  1. +2 −1 .travis.yml
  2. +3 −3 main.go
@@ -1,10 +1,11 @@
language: go
sudo: false
go: stable
install: "# skip"
install: (cd && go get honnef.co/go/tools/cmd/staticcheck)

script:
- go vet
- staticcheck ./...
- 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"
@@ -92,13 +92,13 @@ func main() {
p12FileFlag = flag.String("p12-file", "", "")
)
flag.Usage = func() {
fmt.Fprintf(flag.CommandLine.Output(), shortUsage)
fmt.Fprint(flag.CommandLine.Output(), shortUsage)
fmt.Fprintln(flag.CommandLine.Output(), `For more options, run "mkcert -help".`)
}
flag.Parse()
if *helpFlag {
fmt.Fprintf(flag.CommandLine.Output(), shortUsage)
fmt.Fprintf(flag.CommandLine.Output(), advancedUsage)
fmt.Fprint(flag.CommandLine.Output(), shortUsage)
fmt.Fprint(flag.CommandLine.Output(), advancedUsage)
return
}
if *carootFlag {

0 comments on commit 1f0796c

Please sign in to comment.
You can’t perform that action at this time.