-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yml
More file actions
31 lines (29 loc) · 1.01 KB
/
taskfile.yml
File metadata and controls
31 lines (29 loc) · 1.01 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
version: '3'
tasks:
build:
go build -o timeline-generator.exe
run-svg:
deps: [build]
cmds:
- ./timeline-generator.exe ./examples/template.json ./examples/data.json svg > ./examples/timeline.svg
run-svg-*:
deps: [build]
vars:
NUM: '{{index .MATCH 0}}'
cmds:
- ./timeline-generator.exe ./examples/template_{{.NUM}}.json ./examples/data_{{.NUM}}.json svg > ./examples/timeline_{{.NUM}}.svg
run-html:
deps: [build]
cmds:
- ./timeline-generator.exe ./examples/template.json ./examples/data.json html > ./examples/timeline.html
run-png:
deps: [build]
cmds:
- ./timeline-generator.exe -o ./examples/timeline.png ./examples/template.json ./examples/data.json png
run-jpg:
deps: [build]
cmds:
- ./timeline-generator.exe -o ./examples/timeline.jpg ./examples/template.json ./examples/data.json jpg
test:
cmds:
- go test -v ./...