bacillus/grml.yaml

56 lines
1.2 KiB
YAML

env:
project: bacillus
version: 0.1.0
buildDir: build/
docDir: doc/
releaseDir: ${project}-${version}/
options:
debug: false
breakfast:
- sausage & spam
- spam, egg, sausage & spam
- spam, spam, beans, spam & spam
commands:
release:
help: do full rebuild, docgen and store artifacts in ${releaseDir}
deps:
- vis
- app
exec: |
echo "TODO: cp binary and docs to ${releaseDir}"
tests:
help: unit tests.
exec:
go test -v .
install:
help: install binaries
deps:
- app
as-root: false
exec: |
go install .
vis:
help: generate graphviz (via go-callvis)
deps:
- app
exec: |
echo "calling go-callvis to generate diagram"
go-callvis -file bacillus-vis -format png -ignore bytes,errors,flag,fmt,internal,io,log,net,os,path,runtime,time,strings,sync,syscall,binary,encoding -group pkg,type .
./fixup-gv.sh bacillus.go && cat bacillus-vis.gv | dot -Tpng -obacillus-vis-fixedup.png
app:
aliases: [ build ]
help: build the bacillus tool
deps:
- tests
exec: |
go clean .
gofmt -w .
go build .
#echo "TODO: program output to ${buildDir}"