zuul-jobs/roles/go/README.rst
vass 0ee411860a Adds go jobs and roles.
Adds jobs to test and build go packages.
Adds a role to download and install go from
the official download page (https://golang.org/dl/).
Adds a role to run commands with go e.g build, test, run.

Change-Id: Iad2d877fffa2530e9fdeec648a60755a80cf01f4
2019-11-20 20:27:21 +01:00

25 lines
520 B
ReStructuredText

Run go command in a source directory. Assumes the appropriate version
of go has been installed.
**Role Variables**
.. zuul:rolevar:: go_command
Go command to run.
This parameter is mandatory.
Examples are "test", "run" or "build"
.. zuul:rolevar:: go_package_dir
Directory of the affected go package.
.. zuul:rolevar:: go_bin_path
:default: {{ go_install_dir }}/go/bin
Path to go bin directory
.. zuul:rolevar:: zuul_work_dir
:default: {{ zuul.project.src_dir }}
Directory to run go in.