-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
40 lines (37 loc) · 874 Bytes
/
Taskfile.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
version: '3'
env:
CODECOV_TOKEN: '1b9cb6f5-7ff2-4a7b-92b6-36d82bd10283'
tasks:
clean:
cmds:
- cmd: rm cli
ignore_error: true
- cmd: rm coverage.out
ignore_error: true
- cmd: rm cp.html
ignore_error: true
build:
cmds:
- task: clean
- go build -v ./cmd/cli
test:
cmds:
- task: clean
- go install github.com/cweill/gotests/gotests@latest
- go test -race -v ./... -coverprofile coverage.out
- go tool cover -html coverage.out -o cp.html
- cmd: explorer.exe .
ignore_error: true
test-ci:
cmds:
- task: clean
- go test -race -v ./... -coverprofile coverage.out -covermode=atomic
- bash <(curl -s https://codecov.io/bash)
run:
cmds:
- task: clean
- go run ./cmd/cli
vet:
cmds:
- task: clean
- go vet ./...