Actions
cover:html
Added a new action cover:html
that creates HTML project coverage report and opens it in web-browser.
Example:
tasks:
cover-html:
- action: cover:html
params:
packages:
- './foo'
- './bar'
Manifest
Added Go template support to manifest file.
Expressions should be wrapped with {{{ ... }}}
.
Also manifest template includes some useful functions:
slice
- creates a new sliceshell
- runs shell command and returns command outputsplit
- splits string by charyaml
- serializes slice to YAML/JSON string
Example:
version: 1.0
{{{ $libs := shell "ls -1 ./libs | tr '\n' '\0' | xargs -0 -n 1 basename" | split "\n" }}}
{{{ $packages := slice "./foo" "./bar" }}}
tasks:
build-libs:
{{{ range $libs }}}
- mixin: build-lib
vars:
name: {{{.}}}
{{{ end }}}
cover:
- action: cover
params:
threshold: 40
reportCoverage: true
packages:
{{{ $packages | yaml }}}