[libvirt-go-xml PATCH 1/2] gitlab: add CI definition for GitLab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We want to test against a variety of Go versions to validate that there
are not any incompatibilities in XML parser handling between versions.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 .gitlab-ci.yml | 25 +++++++++++++++++++++++++
 README.md      |  2 +-
 2 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..f19d240
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,25 @@
+
+.go_build: &go_build
+  script:
+    - go test -timeout 10m -tags xmlroundtrip -v
+
+
+go_1_10:
+  <<: *go_build
+  image: golang:1.10
+
+go_1_11:
+  <<: *go_build
+  image: golang:1.11
+
+go_1_12:
+  <<: *go_build
+  image: golang:1.12
+
+go_1_13:
+  <<: *go_build
+  image: golang:1.13
+
+go_1_14:
+  <<: *go_build
+  image: golang:1.14
diff --git a/README.md b/README.md
index fcc1ffb..9e39190 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# libvirt-go-xml [![Build Status](https://travis-ci.org/libvirt/libvirt-go-xml.svg?branch=master)](https://travis-ci.org/libvirt/libvirt-go-xml) [![GoDoc](https://godoc.org/libvirt.org/libvirt-go-xml?status.svg)](https://godoc.org/libvirt.org/libvirt-go-xml)
+# libvirt-go-xml [![build status](https://gitlab.com/berrange/libvirt-go-xml/badges/master/pipeline.svg)](https://gitlab.com/berrange/libvirt-go-xml/-/commits/master) [![GoDoc](https://godoc.org/libvirt.org/libvirt-go-xml?status.svg)](https://godoc.org/libvirt.org/libvirt-go-xml)
 
 Go API for manipulating libvirt XML documents
 
-- 
2.24.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux