Commit Diff


commit - 92a9e85d28a30997176ce0d3c2915e3ea70782c7
commit + cdf9da3e2fae83e739d1b49c5843b05b813001b7
blob - /dev/null
blob + b0c747371a4bc9c1e07365570782c7da544ea05f (mode 644)
--- /dev/null
+++ .cirrus.yml
@@ -0,0 +1,11 @@
+got_linux_task:
+  container:
+    image: gcc:latest
+  before_build_script: .github/ci/before-install.sh
+  build:script: .github/ci/build.sh
+
+got_freebsd_task:
+  freebsd_instance:
+    image_family: freebsd-13-0
+  before_build_script: .github/ci/before-install.sh
+  build:script: .github/ci/build.sh
blob - /dev/null
blob + c7a54fef45741420dba98426a89cfdbd6606465c (mode 755)
--- /dev/null
+++ .github/ci/before-install.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if [ "$CIRRUS_OS" = "linux" ]; then
+	apt-get update -qq && \
+	apt-get -y install bison \
+				autotools-dev \
+				libncurses5-dev \
+				pkg-config \
+				build-essential \
+				libmd-dev \
+				libssl-dev \
+				uuid-dev \
+				zlib1g-dev
+fi
+
+if [ "$CIRRUS_OS" = "freebsd" ]; then
+	pkg install -y \
+		automake \
+		pkgconf
+fi
blob - /dev/null
blob + ada153439421482a222e4942f631de8054eeb2fe (mode 755)
--- /dev/null
+++ .github/ci/before-install.sh.orig
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if [ "$OS_NAME" = "linux" ]; then
+	apt-get update -qq && \
+	apt-get -y install bison \
+				autotools-dev \
+				libncurses5-dev \
+				pkg-config \
+				build-essential \
+				libmd-dev \
+				libssl-dev \
+				uuid-dev \
+				zlib1g-dev
+fi
+
+if [ "$OS_NAME" = "freebsd" ]; then
+	pkg install -y \
+		automake \
+		pkgconf
+fi
blob - /dev/null
blob + 2c026400fa305c2d7a53ed4fd25940514b9762f7 (mode 755)
--- /dev/null
+++ .github/ci/build.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+./autogen.sh || exit 1
+./configure || exit 1
+exec make
blob - /dev/null
blob + 2c026400fa305c2d7a53ed4fd25940514b9762f7 (mode 755)
--- /dev/null
+++ .github/ci/build.sh.orig
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+./autogen.sh || exit 1
+./configure || exit 1
+exec make