diff --git a/hydra/jobsets.json b/hydra/jobsets.json new file mode 100644 index 00000000..64e4738d --- /dev/null +++ b/hydra/jobsets.json @@ -0,0 +1,15 @@ +{ + "enabled": 1, + "hidden": true, + "description": "Jobsets", + "nixexprinput": "nix-config", + "nixexprpath": "hydra/jobsets.nix", + "checkinterval": 300, + "schedulingshares": 100, + "enableemail": false, + "emailoverride": "astro@spaceboyz.net", + "keepnr": 10, + "inputs": { + "c3d2": { "type": "git", "value": "https://gitea.c3d2.de/C3D2/nix-config.git hydra 1", "emailresponsible": false } + } +} diff --git a/hydra/jobsets.nix b/hydra/jobsets.nix new file mode 100644 index 00000000..3b317b38 --- /dev/null +++ b/hydra/jobsets.nix @@ -0,0 +1,36 @@ +{ pkgs ? import {} }: +let + jobsets = { + spacemsg = { + enabled = 1; + hidden = false; + description = "Astro's HQ IoT stuff"; + nixexprinput = "nix-config"; + nixexprpath = "hydra/spacemsg.nix"; + checkinterval = 300; + schedulingshares = 100; + enableemail = true; + emailoverride = "astro@spaceboyz.net"; + keepnr = 3; + inputs = { + c3d2 = { + type = "git"; + value = "https://gitea.c3d2.de/C3D2/nix-config.git hydra 1"; + emailresponsible = false; + }; + nixpkgs = { + type = "git"; + value = "git://github.com/NixOS/nixpkgs.git release-19.03"; + emailresponsible = false; + }; + }; + }; + }; + + jobsetsJson = pkgs.writeText "jobsets.json" (builtins.toJSON jobsets ); +in +{ + jobsets = pkgs.runCommand "spec.json" {} '' + ln -s ${jobsetsJson} $out + ''; +} diff --git a/hydra/spacemsg.nix b/hydra/spacemsg.nix new file mode 100644 index 00000000..6c1df91d --- /dev/null +++ b/hydra/spacemsg.nix @@ -0,0 +1,11 @@ +{ pkgs ? import {}, +}: + +with pkgs; +let + spaceapi = import "${}/spaceapi" { + inherit pkgs; + }; +in { + spaceapi = lib.hydraJob spaceapi; +}