Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Build = golang.MustBinary("cmd/fab", "fab")
Build builds the fab binary.
Check runs all of Vet, Lint, and Test.
View Source
var Clean = fab.Clean("fab", "cover.out")
View Source
var Cover = fab.Seq( fab.Shellf("go test -coverprofile cover.out ./..."), fab.Shellf("go tool cover -html cover.out"), )
Cover produces a test-coverage profile and opens it in a browser.
View Source
var Lint = &fab.Command{Shell: "golangci-lint run ./...", Stdout: os.Stdout}
Lint runs staticcheck.
View Source
var Test = fab.Shellf("go test -race -cover ./...")
Test runs "go test" with the race detector enabled, plus coverage reporting.
View Source
var Vet = &fab.Command{Shell: "go vet ./...", Stdout: os.Stdout}
Vet runs "go vet".
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.