-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
61 lines (48 loc) · 1.2 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
version: '3'
# We embed a generic task to run in the different directories.
# Using a local task with a variable to set the target directory also works but breaks the system
# that determines wether the source files have changed since the last run.
includes:
std:
taskfile: Generate.yml
dir: vit/std
vars: {Root: "{{.ROOT}}"}
gui:
taskfile: Generate.yml
dir: gui
vars: {Root: "{{.ROOT}}"}
controls:
taskfile: Generate.yml
dir: controls
vars: {Root: "{{.ROOT}}"}
pdf:
taskfile: Generate.yml
dir: pdf
vars: {Root: "{{.ROOT}}"}
vars:
ROOT:
sh: "echo $(pwd)"
output: group
tasks:
generate:
deps: [ check-generator-build ]
cmds:
- task: generate-files
generate-files:
deps: # runs them all in parallel
- std:generate-local
- gui:generate-local
- controls:generate-local
- pdf:generate-local
check-generator-build:
- cmd: go vet github.com/omniskop/vitrum/vit/generator/gencmd # we use go vet to check for errors in the package
silent: true
build:
deps: [ generate ]
cmds:
- go build
run:
interactive: true # better live output
deps: [ build ]
cmds:
- ./vitrum