ad7297199d
* Build role requires build target to be specified via a variable * Ensure role checks for a specific version of Bazel and downloads and installs if missing; defaults to v3.1.0 and downloading from bazelbuild Github, but these can be overrriden using variables * Also installs dependencies for Bazel; only supports Ubuntu/Debian at present, but includes scope to extend for other platforms * Includes test playbook and job Change-Id: I83f198aaf20c2b3664bea6fc05edd3b4fca13a4f
13 lines
407 B
YAML
13 lines
407 B
YAML
- name: Check version of bazel
|
|
shell: bazel --version | grep -Eo '([0-9]+\.)+[0-9]+'
|
|
ignore_errors: yes
|
|
register: installed_bazel_version
|
|
|
|
- debug: msg="Current installed Bazel version is {{ installed_bazel_version.stdout }}"
|
|
|
|
- name: Download and install Bazel if needed
|
|
include_tasks: install-bazel.yaml
|
|
when:
|
|
- install_bazel_if_missing
|
|
- installed_bazel_version.stdout != bazel_version
|