2014-11-30 02:56:22 +03:00
|
|
|
# This test runs gitlab and checks if it works
|
|
|
|
|
|
|
|
import ./make-test.nix {
|
|
|
|
name = "gitlab";
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
gitlab = { config, pkgs, ... }: {
|
|
|
|
virtualisation.memorySize = 768;
|
|
|
|
services.gitlab.enable = true;
|
|
|
|
services.gitlab.databasePassword = "gitlab";
|
2014-12-17 18:40:17 +03:00
|
|
|
systemd.services.gitlab.serviceConfig.TimeoutStartSec = "10min";
|
2014-11-30 02:56:22 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
$gitlab->start();
|
|
|
|
$gitlab->waitForUnit("gitlab.service");
|
2014-12-14 04:30:13 +03:00
|
|
|
$gitlab->waitForUnit("gitlab-sidekiq.service");
|
|
|
|
$gitlab->waitUntilSucceeds("curl http://localhost:8080/users/sign_in");
|
2014-11-30 02:56:22 +03:00
|
|
|
'';
|
|
|
|
}
|