-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
47 lines (40 loc) · 957 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
41
42
43
44
45
46
47
version: '3'
vars:
DOCKER: '{{default "docker" .DOCKER}}'
tasks:
setup:
desc: Install dependencies
cmds:
- go mod tidy
build:
desc: Build the binary
sources:
- ./**/*.go
generates:
- ./hacienda
cmds:
- go build
ci:
desc: Run all CI steps
cmds:
- task: setup
- task: build
docs:generate:
desc: Generate docs
cmds:
- go run . docs
- cp -rf CONTRIBUTING.md www/docs/contributing.md
sources:
- CONTRIBUTING.md
generates:
- www/docs/contributing.md
docs:serve:
desc: Start documentation server
cmds:
- "{{.DOCKER}} build -t mkdocs -f www/docker/Dockerfile www/docker"
- "{{.DOCKER}} run --rm -p 8000:8000 -v ${PWD}/www:/docs mkdocs"
docs:build:
desc: Build docs
cmds:
- "{{.DOCKER}} build -t mkdocs -f www/docker/Dockerfile www/docker"
- "{{.DOCKER}} run --rm -v ${PWD}/www:/docs mkdocs build"