-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
49 lines (42 loc) · 1 KB
/
Copy pathTaskfile.yml
File metadata and controls
49 lines (42 loc) · 1 KB
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
version: "3"
tasks:
format:
desc: Format Go source files
cmds:
- gofmt -w .
test:
desc: Run tests
cmds:
- go test ./...
vet:
desc: Run Go vet
cmds:
- go vet ./...
build:
desc: Build dotctl into bin/
cmds:
- mkdir -p bin
- go build -o bin/dotctl .
install:
desc: Build and install dotctl into ~/.local/bin
deps: [build]
cmds:
- mkdir -p "$HOME/.local/bin"
- install -m 0755 bin/dotctl "$HOME/.local/bin/dotctl"
release-build:
desc: Build release artifacts locally (task release-build -- v0.1.0)
cmds:
- bash scripts/release-build.sh {{.CLI_ARGS}}
check:
desc: Run all checks used by CI (Go and Python 3 required)
cmds:
- |
test -z "$(gofmt -l .)" || {
echo "Run: gofmt -w ." >&2
gofmt -l . >&2
exit 1
}
- go vet ./...
- go test ./...
- go build ./...
- python3 -B -m unittest discover -s scripts/tests -p 'test_*.py' -v