Skip to content

1.1.0

Latest
Compare
Choose a tag to compare
@x1unix x1unix released this 12 Jun 00:36
· 6 commits to master since this release
a1c6fca

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 slice
  • shell - runs shell command and returns command output
  • split - splits string by char
  • yaml - 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 }}}