CI: add support for FreeBSD/NetBSD/OpenBSD through sourcehut
authorKirill Isakov <is-kir@ya.ru>
Sat, 10 Jul 2021 15:11:27 +0000 (21:11 +0600)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 10 Jul 2021 20:40:47 +0000 (22:40 +0200)
.builds/freebsd.yml [new file with mode: 0644]
.builds/netbsd.yml [new file with mode: 0644]
.builds/openbsd.yml [new file with mode: 0644]
.gitignore

diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml
new file mode 100644 (file)
index 0000000..5afae0f
--- /dev/null
@@ -0,0 +1,31 @@
+image: freebsd/13.x
+
+packages:
+  - gmake
+  - autotools
+  - openssl
+  - lzo2
+  - ncurses
+  - miniupnpc
+  - readline
+  - texinfo
+
+environment:
+  CFLAGS: -I/usr/local/include -L/usr/local/lib
+
+sources:
+  - https://github.com/gsliepen/tinc
+
+tasks:
+  - configure: |
+      cd tinc
+      autoreconf -fsi
+      ./configure --with-miniupnpc
+
+  - build: |
+      cd tinc
+      gmake -j$(sysctl -n hw.ncpu)
+
+  - test: |
+      cd tinc
+      gmake check-recursive VERBOSE=1
diff --git a/.builds/netbsd.yml b/.builds/netbsd.yml
new file mode 100644 (file)
index 0000000..633a982
--- /dev/null
@@ -0,0 +1,32 @@
+image: netbsd/9.x
+
+packages:
+  - gmake
+  - automake
+  - autoconf
+  - openssl
+  - lzo
+  - miniupnpc
+  - readline
+  - gtexinfo
+
+environment:
+  CFLAGS: -I/usr/pkg/include -L/usr/pkg/lib
+
+sources:
+  - https://github.com/gsliepen/tinc
+
+tasks:
+  - configure: |
+      cd tinc
+      autoreconf -fsi
+      ./configure --with-miniupnpc
+
+  - build: |
+      cd tinc
+      gmake -j$(sysctl -n hw.ncpu)
+
+  - test: |
+      cd tinc
+      export LD_LIBRARY_PATH=/usr/pkg/lib
+      gmake check-recursive VERBOSE=1
diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml
new file mode 100644 (file)
index 0000000..d8b2ea1
--- /dev/null
@@ -0,0 +1,33 @@
+image: openbsd/6.9
+
+packages:
+  - gmake
+  - automake-1.16.3
+  - autoconf-2.71
+  - openssl-1.1.1k
+  - lzo2
+  - miniupnpc
+  - readline
+  - texinfo
+
+environment:
+  AUTOCONF_VERSION: 2.71
+  AUTOMAKE_VERSION: 1.16
+  CFLAGS: -I/usr/local/include -L/usr/local/lib
+
+sources:
+  - https://github.com/gsliepen/tinc
+
+tasks:
+  - configure: |
+      cd tinc
+      autoreconf -fsi
+      ./configure --with-miniupnpc
+
+  - build: |
+      cd tinc
+      gmake -j$(sysctl -n hw.ncpu)
+
+  - test: |
+      cd tinc
+      gmake check-recursive VERBOSE=1
index d9d38dc..e7bb9ef 100644 (file)
@@ -1,5 +1,6 @@
 .*
 !.github/
+!.builds/
 !.gitignore
 !.astylerc
 *.a