Commit Diff


commit - b717ce9bd51371aefd55ccd6ddf623f83aed8e29
commit + 87154adc3ffe738b0e1223d666c0ae63e1926399
blob - /dev/null
blob + 8670c64ccb1a731a95e183c54c33d67640fbba10 (mode 644)
--- /dev/null
+++ .build.yml
@@ -0,0 +1,18 @@
+image: openbsd/latest
+packages:
+  - go
+  - icinga2
+sources:
+  - https://git.sr.ht/~otl/icinga
+tasks:
+  - icinga_setup: |
+      doas icinga2 api setup
+      doas tee /etc/icinga2/conf.d/api-users.conf <<EOF
+      object ApiUser "icinga" {
+        password = name
+        permissions = ["*"]
+      }
+      EOF
+      doas rcctl enable icinga2
+      doas rcctl start icinga2
+  - test: cd icinga && go test
blob - bf68dac0cd9179bf79782212e1b34e1c2207bcca
blob + 448579c0a054e06e476cf8d731b3517ca9a5e6c0
--- README.md
+++ README.md
@@ -1,5 +1,7 @@
 package icinga provides a client to the Icinga2 HTTP API.
 
+[![builds.sr.ht status](https://builds.sr.ht/~otl/icinga.svg)](https://builds.sr.ht/~otl/icinga?)
+
 [![godocs.io](http://godocs.io/olowe.co/icinga?status.svg)](http://godocs.io/olowe.co/icinga)
 
 Send patches, questions or a friendly "hello" to the mailing list: [~otl/icinga@lists.sr.ht](mailto:~otl/icinga@lists.sr.ht) 🙂