2014-11-29 23:56:22 +00:00
|
|
|
# This test runs gitlab and checks if it works
|
|
|
|
|
2015-07-12 10:09:40 +00:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
2014-11-29 23:56:22 +00:00
|
|
|
name = "gitlab";
|
2015-07-12 10:09:40 +00:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
2016-05-17 11:57:28 +00:00
|
|
|
maintainers = [ domenkozar offline ];
|
2015-07-12 10:09:40 +00:00
|
|
|
};
|
2014-11-29 23:56:22 +00:00
|
|
|
|
|
|
|
nodes = {
|
|
|
|
gitlab = { config, pkgs, ... }: {
|
|
|
|
virtualisation.memorySize = 768;
|
|
|
|
services.gitlab.enable = true;
|
|
|
|
services.gitlab.databasePassword = "gitlab";
|
2014-12-17 15:40:17 +00:00
|
|
|
systemd.services.gitlab.serviceConfig.TimeoutStartSec = "10min";
|
2014-11-29 23:56:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
$gitlab->start();
|
|
|
|
$gitlab->waitForUnit("gitlab.service");
|
2014-12-14 01:30:13 +00:00
|
|
|
$gitlab->waitForUnit("gitlab-sidekiq.service");
|
|
|
|
$gitlab->waitUntilSucceeds("curl http://localhost:8080/users/sign_in");
|
2014-11-29 23:56:22 +00:00
|
|
|
'';
|
2015-07-12 10:09:40 +00:00
|
|
|
})
|