-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
68 lines (57 loc) · 1.45 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3'
vars:
EXE: bin/waddles{{exeExt}}
MAIN_CMD: ./cmd/waddles
tasks:
default:
cmds:
- task -l
silent: true
postgres-reset:
desc: reset the postgres container's data volume
deps: [postgres-down]
cmds:
- podman volume rm deploy_postgres_data
postgres-down:
desc: take down a container instance of postgres for development with 'task run'
cmds:
- podman-compose -f deploy/development-compose.yml down
- rm .task/.pgup
status:
- "! test -f .task/.pgup"
postgres-up:
desc: put up a container instance of postgres for development with 'task run'
cmds:
- podman-compose -f deploy/development-compose.yml up -d
- touch .task/.pgup
status:
- test -f ./.task/.pgup
run:
desc: run the bot locally wih
deps: [postgres-up, build]
cmds:
- ./{{.EXE}}
test:
desc: run all tests
cmds:
- go test ./... -cover -covermode atomic
testv:
desc: run all tests verbosely
cmds:
- go test ./... -cover -covermode atomic -v
build:
desc: build executable to {{.EXE}}
cmds:
- go build -o {{.EXE}} {{.MAIN_CMD}}
sources:
- ./**/*.go
generates:
- bin/waddles
build-container:
desc: builds an OCI-container for waddles
cmds:
- podman build -t waddles .
todo:
desc: find all //TODO comments in the repo
cmds:
- grep -nr --exclude="Taskfile.yml" --exclude-dir=".git" "//TODO" .