-
Notifications
You must be signed in to change notification settings - Fork 0
/
fab.yaml
42 lines (37 loc) · 912 Bytes
/
fab.yaml
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
33
34
35
36
37
38
39
40
41
42
# Build builds the mingo binary.
Build: !go.Binary
Dir: cmd/mingo
# Test runs "go test" with coverage reporting.
Test: !Command
Shell: go test -cover ./...
Stdout: $stdout
# Lint runs an assortment of linters.
Lint: !Seq
- !Command
Shell: go vet ./...
Stdout: $stdout
- !Command
Shell: staticcheck ./...
Stdout: $stdout
- !Command
Shell: revive ./...
Stdout: $stdout
# Cover produces a test-coverage profile and opens it in a browser.
Cover: !Deps
Pre: [CoverOut]
Post: !Command
Shell: go tool cover -html cover.out
# CoverOut produces cover.out by running "go test -coverprofile".
CoverOut: !Files
In: !go.Deps
Dir: cmd/mingo
Recursive: true
Tests: true
Out: [cover.out]
Target: !Command
Shell: go test -coverprofile cover.out ./...
Stdout: $stdout
Autoclean: true
# Clean removes build-target output.
Clean: !Clean
Autoclean: true