mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
24 lines
696 B
Nix
24 lines
696 B
Nix
|
import ./make-test-python.nix ({ pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
name = "buildkite-agent";
|
||
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||
|
maintainers = [ flokli ];
|
||
|
};
|
||
|
|
||
|
machine = { pkgs, ... }: {
|
||
|
services.buildkite-agent = {
|
||
|
enable = true;
|
||
|
privateSshKeyPath = (import ./ssh-keys.nix pkgs).snakeOilPrivateKey;
|
||
|
tokenPath = (pkgs.writeText "my-token" "5678");
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
# we can't wait on the unit to start up, as we obviously can't connect to buildkite,
|
||
|
# but we can look whether files are set up correctly
|
||
|
machine.wait_for_file("/var/lib/buildkite-agent/buildkite-agent.cfg")
|
||
|
machine.wait_for_file("/var/lib/buildkite-agent/.ssh/id_rsa")
|
||
|
'';
|
||
|
})
|