forked from freeformz/bits
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmagefile.go
More file actions
32 lines (25 loc) · 769 Bytes
/
magefile.go
File metadata and controls
32 lines (25 loc) · 769 Bytes
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
// +build mage
package main
import (
// mage:import
"github.com/freeformz/bits/mage/toolns"
"github.com/magefile/mage/mg"
// mage:import
"github.com/freeformz/bits/mage/gons"
)
func init() {
gons.ModuleName = "github.com/freeformz/bits"
gons.Version = "go1.13"
// Other gons settings (defaults)
// gons.CoverArgs = "-html=coverage.out -o coverage.html"
// gons.TestArgs = "-v -race -coverprofile=coverage.out -covermode=atomic ./..."
// Golangci-lint settings (defaults), remove the '_' part of the import above
// toolns.GolangciLint.Version = "1.20.0"
// toolns.GolangciLint.RunArgs = "--fix ./..."
}
func Precommit() error {
var g gons.Go
var golangciLint toolns.Golangcilint
mg.Deps(g.CheckVersion, g.Test, golangciLint.Run)
return nil
}