Skip to contentSkip to conversation

cirrus-ci: introduce some basic FreeBSD testing

PATCH In review Roger Pau Monne 3 participants 3 messages Feb 23, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cirrus-ci: introduce some basic FreeBSD testing

Cirrus-CI supports FreeBSD natively, so introduce some build tests on FreeBSD.

The Cirrus-CI requires a Github repository in order to trigger the tests.

A sample run output can be seen at:

https://github.com/royger/xen/runs/1962451343

Note the FreeBSD 11 task fails to build QEMU and is not part of this patch.

---
I think this is fine to go in right now, as it's just a meta file for a test framework, and has 0 chance of breaking anything existing in Xen.

---
 .cirrus.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 .cirrus.yml
.cirrus.yml new file +26 -0
new file mode 100644
index 0000000000..5e3e46368e
@@ -0,0 +1,26 @@
+# https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks
+freebsd_template: &FREEBSD_TEMPLATE
+  environment:
+    APPEND_LIB: /usr/local/lib
+    APPEND_INCLUDES: /usr/local/include
+
+  install_script: pkg install -y seabios markdown gettext-tools gmake
+                                 pkgconf python libiconv bison perl5
+                                 yajl lzo2 pixman argp-standalone
+                                 libxml2 glib git
+
+  build_script:
+    - ./configure --with-system-seabios=/usr/local/share/seabios/bios.bin
+    - gmake -j`sysctl -n hw.ncpu` clang=y
+
+task:
+  name: 'FreeBSD 12'
+  freebsd_instance:
+    image_family: freebsd-12-2
+  << : *FREEBSD_TEMPLATE
+
+task:
+  name: 'FreeBSD 13'
+  freebsd_instance:
+    image_family: freebsd-13-0
+  << : *FREEBSD_TEMPLATE
Signature · 1 line
2.30.1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Roger Pau Monne

Cirrus-CI supports FreeBSD natively, so introduce some build tests on FreeBSD.

The Cirrus-CI requires a Github repository in order to trigger the tests.

Quoted 8 lines

A sample run output can be seen at:

https://github.com/royger/xen/runs/1962451343

Note the FreeBSD 11 task fails to build QEMU and is not part of this patch.

Fantastic to get some FreeBSD CI available.

#2 lore raw
In reply to Roger Pau Monne

Roger Pau Monne writes ("[PATCH for-4.15] cirrus-ci: introduce some basic FreeBSD testing"):

Quoted 6 lines

Cirrus-CI supports FreeBSD natively, so introduce some build tests on FreeBSD.

The Cirrus-CI requires a Github repository in order to trigger the tests.

Quoted 6 lines

A sample run output can be seen at:

https://github.com/royger/xen/runs/1962451343

Note the FreeBSD 11 task fails to build QEMU and is not part of this patch.