mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
24 lines
683 B
Nix
24 lines
683 B
Nix
# This test runs gitlab and checks if it works
|
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "gitlab";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ domenkozar offline ];
|
|
};
|
|
|
|
nodes = {
|
|
gitlab = { config, pkgs, ... }: {
|
|
virtualisation.memorySize = 768;
|
|
services.gitlab.enable = true;
|
|
services.gitlab.databasePassword = "gitlab";
|
|
systemd.services.gitlab.serviceConfig.TimeoutStartSec = "10min";
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
$gitlab->start();
|
|
$gitlab->waitForUnit("gitlab.service");
|
|
$gitlab->waitForUnit("gitlab-sidekiq.service");
|
|
$gitlab->waitUntilSucceeds("curl http://localhost:8080/users/sign_in");
|
|
'';
|
|
})
|