Signed-off-by: Andrea Bolognani <abolo...@redhat.com>
---
 ansible/host_vars/libvirt-centos-7/main.yml       |  1 +
 ansible/host_vars/libvirt-debian-8/main.yml       |  1 +
 ansible/host_vars/libvirt-debian-9/main.yml       |  1 +
 ansible/host_vars/libvirt-fedora-25/main.yml      |  1 +
 ansible/host_vars/libvirt-fedora-26/main.yml      |  1 +
 ansible/host_vars/libvirt-fedora-rawhide/main.yml |  1 +
 ansible/host_vars/libvirt-freebsd-11/main.yml     |  1 +
 ansible/host_vars/libvirt-ubuntu-16/main.yml      |  1 +
 ansible/tasks/build.yml                           | 16 ++++++++++++++++
 ansible/vars/libvirt-go/CentOS-7.yml              |  7 +++++++
 ansible/vars/libvirt-go/Debian-8.yml              |  7 +++++++
 ansible/vars/libvirt-go/Debian-9.yml              |  7 +++++++
 ansible/vars/libvirt-go/Fedora-25.yml             |  7 +++++++
 ansible/vars/libvirt-go/Fedora-26.yml             |  7 +++++++
 ansible/vars/libvirt-go/Fedora-Rawhide.yml        |  7 +++++++
 ansible/vars/libvirt-go/FreeBSD-11.yml            |  6 ++++++
 ansible/vars/libvirt-go/Ubuntu-16.yml             |  7 +++++++
 17 files changed, 79 insertions(+)
 create mode 100644 ansible/vars/libvirt-go/CentOS-7.yml
 create mode 100644 ansible/vars/libvirt-go/Debian-8.yml
 create mode 100644 ansible/vars/libvirt-go/Debian-9.yml
 create mode 100644 ansible/vars/libvirt-go/Fedora-25.yml
 create mode 100644 ansible/vars/libvirt-go/Fedora-26.yml
 create mode 100644 ansible/vars/libvirt-go/Fedora-Rawhide.yml
 create mode 100644 ansible/vars/libvirt-go/FreeBSD-11.yml
 create mode 100644 ansible/vars/libvirt-go/Ubuntu-16.yml

diff --git a/ansible/host_vars/libvirt-centos-7/main.yml 
b/ansible/host_vars/libvirt-centos-7/main.yml
index 87b39f3..728b6d5 100644
--- a/ansible/host_vars/libvirt-centos-7/main.yml
+++ b/ansible/host_vars/libvirt-centos-7/main.yml
@@ -5,3 +5,4 @@ projects:
   - libvirt
   - libvirt-cim
   - libvirt-glib
+  - libvirt-go
diff --git a/ansible/host_vars/libvirt-debian-8/main.yml 
b/ansible/host_vars/libvirt-debian-8/main.yml
index 06aed9d..6fa3e95 100644
--- a/ansible/host_vars/libvirt-debian-8/main.yml
+++ b/ansible/host_vars/libvirt-debian-8/main.yml
@@ -4,3 +4,4 @@ projects:
   - libosinfo
   - libvirt
   - libvirt-glib
+  - libvirt-go
diff --git a/ansible/host_vars/libvirt-debian-9/main.yml 
b/ansible/host_vars/libvirt-debian-9/main.yml
index 06aed9d..6fa3e95 100644
--- a/ansible/host_vars/libvirt-debian-9/main.yml
+++ b/ansible/host_vars/libvirt-debian-9/main.yml
@@ -4,3 +4,4 @@ projects:
   - libosinfo
   - libvirt
   - libvirt-glib
+  - libvirt-go
diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml 
b/ansible/host_vars/libvirt-fedora-25/main.yml
index 87b39f3..728b6d5 100644
--- a/ansible/host_vars/libvirt-fedora-25/main.yml
+++ b/ansible/host_vars/libvirt-fedora-25/main.yml
@@ -5,3 +5,4 @@ projects:
   - libvirt
   - libvirt-cim
   - libvirt-glib
+  - libvirt-go
diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml 
b/ansible/host_vars/libvirt-fedora-26/main.yml
index 87b39f3..728b6d5 100644
--- a/ansible/host_vars/libvirt-fedora-26/main.yml
+++ b/ansible/host_vars/libvirt-fedora-26/main.yml
@@ -5,3 +5,4 @@ projects:
   - libvirt
   - libvirt-cim
   - libvirt-glib
+  - libvirt-go
diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml 
b/ansible/host_vars/libvirt-fedora-rawhide/main.yml
index 87b39f3..728b6d5 100644
--- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml
+++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml
@@ -5,3 +5,4 @@ projects:
   - libvirt
   - libvirt-cim
   - libvirt-glib
+  - libvirt-go
diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml 
b/ansible/host_vars/libvirt-freebsd-11/main.yml
index 1acdd66..c2b059e 100644
--- a/ansible/host_vars/libvirt-freebsd-11/main.yml
+++ b/ansible/host_vars/libvirt-freebsd-11/main.yml
@@ -11,3 +11,4 @@ projects:
   - libosinfo
   - libvirt
   - libvirt-glib
+  - libvirt-go
diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml 
b/ansible/host_vars/libvirt-ubuntu-16/main.yml
index 06aed9d..6fa3e95 100644
--- a/ansible/host_vars/libvirt-ubuntu-16/main.yml
+++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml
@@ -4,3 +4,4 @@ projects:
   - libosinfo
   - libvirt
   - libvirt-glib
+  - libvirt-go
diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml
index 17f5bf3..4704729 100644
--- a/ansible/tasks/build.yml
+++ b/ansible/tasks/build.yml
@@ -88,3 +88,19 @@
         os_name == 'Fedora' )
     - ( project == 'libvirt' or
         project == 'libvirt-cim' )
+
+# Go build
+
+- name: '{{ project }}: Build project'
+  command: go build -v
+  args:
+    chdir: '{{ project }}'
+  when:
+    - project == 'libvirt-go'
+
+- name: '{{ project }}: Run test suite'
+  command: go test -tags api
+  args:
+    chdir: '{{ project }}'
+  when:
+    - project == 'libvirt-go'
diff --git a/ansible/vars/libvirt-go/CentOS-7.yml 
b/ansible/vars/libvirt-go/CentOS-7.yml
new file mode 100644
index 0000000..6208bbb
--- /dev/null
+++ b/ansible/vars/libvirt-go/CentOS-7.yml
@@ -0,0 +1,7 @@
+---
+packages:
+  - golang
+
+extra_packages:
+  - libvirt-devel
+  - libvirt-libs
diff --git a/ansible/vars/libvirt-go/Debian-8.yml 
b/ansible/vars/libvirt-go/Debian-8.yml
new file mode 100644
index 0000000..e1de972
--- /dev/null
+++ b/ansible/vars/libvirt-go/Debian-8.yml
@@ -0,0 +1,7 @@
+---
+packages:
+  - golang
+
+extra_packages:
+  - libvirt-daemon
+  - libvirt-dev
diff --git a/ansible/vars/libvirt-go/Debian-9.yml 
b/ansible/vars/libvirt-go/Debian-9.yml
new file mode 100644
index 0000000..e1de972
--- /dev/null
+++ b/ansible/vars/libvirt-go/Debian-9.yml
@@ -0,0 +1,7 @@
+---
+packages:
+  - golang
+
+extra_packages:
+  - libvirt-daemon
+  - libvirt-dev
diff --git a/ansible/vars/libvirt-go/Fedora-25.yml 
b/ansible/vars/libvirt-go/Fedora-25.yml
new file mode 100644
index 0000000..6208bbb
--- /dev/null
+++ b/ansible/vars/libvirt-go/Fedora-25.yml
@@ -0,0 +1,7 @@
+---
+packages:
+  - golang
+
+extra_packages:
+  - libvirt-devel
+  - libvirt-libs
diff --git a/ansible/vars/libvirt-go/Fedora-26.yml 
b/ansible/vars/libvirt-go/Fedora-26.yml
new file mode 100644
index 0000000..6208bbb
--- /dev/null
+++ b/ansible/vars/libvirt-go/Fedora-26.yml
@@ -0,0 +1,7 @@
+---
+packages:
+  - golang
+
+extra_packages:
+  - libvirt-devel
+  - libvirt-libs
diff --git a/ansible/vars/libvirt-go/Fedora-Rawhide.yml 
b/ansible/vars/libvirt-go/Fedora-Rawhide.yml
new file mode 100644
index 0000000..6208bbb
--- /dev/null
+++ b/ansible/vars/libvirt-go/Fedora-Rawhide.yml
@@ -0,0 +1,7 @@
+---
+packages:
+  - golang
+
+extra_packages:
+  - libvirt-devel
+  - libvirt-libs
diff --git a/ansible/vars/libvirt-go/FreeBSD-11.yml 
b/ansible/vars/libvirt-go/FreeBSD-11.yml
new file mode 100644
index 0000000..a998356
--- /dev/null
+++ b/ansible/vars/libvirt-go/FreeBSD-11.yml
@@ -0,0 +1,6 @@
+---
+packages:
+  - go
+
+extra_packages:
+  - libvirt
diff --git a/ansible/vars/libvirt-go/Ubuntu-16.yml 
b/ansible/vars/libvirt-go/Ubuntu-16.yml
new file mode 100644
index 0000000..e1de972
--- /dev/null
+++ b/ansible/vars/libvirt-go/Ubuntu-16.yml
@@ -0,0 +1,7 @@
+---
+packages:
+  - golang
+
+extra_packages:
+  - libvirt-daemon
+  - libvirt-dev
-- 
2.13.6

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to