mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
21 lines
503 B
Nix
21 lines
503 B
Nix
# 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";
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
$gitlab->start();
|
|
$gitlab->waitForUnit("gitlab.service");
|
|
$gitlab->waitForUnit("gitlab-sidekiq.service");
|
|
$gitlab->waitUntilSucceeds("curl http://localhost:8080/users/sign_in");
|
|
'';
|
|
}
|