-
Notifications
You must be signed in to change notification settings - Fork 2
/
tusk.yml
62 lines (60 loc) · 1.48 KB
/
tusk.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
tasks:
bootstrap:
usage: Set up dependencies for first time use
description: |
Install all dependencies for building and testing the library.
run:
- go get -u github.com/golang/dep/cmd/dep
- dep ensure
- go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
lint:
usage: Run static analysis
description: |
Runs golangci-lint using the configuration specified in .golangci.toml
options:
fast:
usage: Only run fast linters
type: bool
short: f
opts:
private: true
default:
when: fast
value: --fast
run: golangci-lint run ${opts} ./...
test:
usage: Run go test and gometalinter
description: |
Runs the full test suite using `go test -cover -race ./...`.
options:
all:
usage: Run all tests and linters
short: a
type: bool
fast:
usage: Only run fast tests
short: f
type: bool
verbose:
usage: Run the tests in verbose mode
short: v
type: bool
verbose-string:
private: true
default:
when: verbose
value: -v
short-string:
private: true
default:
when: fast
value: -short
run:
- when:
equal: {all: true}
task:
name: lint
options:
fast: ${fast}
- command: go test -cover -race ${verbose-string} ${short-string} ./...