forked from fediversity/fediversity
Compare commits
No commits in common. "effad34170c5efb87e97adaffd5ec5815619fbe0" and "7b985c0b81673f200d1fe83e38aaafe9cee2b6fe" have entirely different histories.
effad34170
...
7b985c0b81
3 changed files with 11 additions and 13 deletions
|
|
@ -9,9 +9,7 @@ let
|
||||||
pre-commit-check =
|
pre-commit-check =
|
||||||
(import "${git-hooks}/nix" {
|
(import "${git-hooks}/nix" {
|
||||||
inherit nixpkgs system;
|
inherit nixpkgs system;
|
||||||
gitignore-nix-src = {
|
gitignore-nix-src = gitignore;
|
||||||
lib = import gitignore { inherit lib; };
|
|
||||||
};
|
|
||||||
}).run
|
}).run
|
||||||
{
|
{
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
@ -20,7 +18,7 @@ let
|
||||||
## Add a directory here if pre-commit hooks shouldn't apply to it.
|
## Add a directory here if pre-commit hooks shouldn't apply to it.
|
||||||
optout = [
|
optout = [
|
||||||
"npins"
|
"npins"
|
||||||
".terraform"
|
"**/.terraform"
|
||||||
];
|
];
|
||||||
excludes = map (dir: "^${dir}/") optout;
|
excludes = map (dir: "^${dir}/") optout;
|
||||||
addExcludes = lib.mapAttrs (_: c: c // { inherit excludes; });
|
addExcludes = lib.mapAttrs (_: c: c // { inherit excludes; });
|
||||||
|
|
@ -38,9 +36,6 @@ in
|
||||||
shell = pkgs.mkShellNoCC {
|
shell = pkgs.mkShellNoCC {
|
||||||
inherit (pre-commit-check) shellHook;
|
inherit (pre-commit-check) shellHook;
|
||||||
buildInputs = pre-commit-check.enabledPackages;
|
buildInputs = pre-commit-check.enabledPackages;
|
||||||
packages = [
|
|
||||||
pkgs.nixfmt-rfc-style
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
tests = {
|
tests = {
|
||||||
|
|
|
||||||
|
|
@ -13,5 +13,7 @@ refactor:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
- services tests
|
- services tests
|
||||||
|
- root test
|
||||||
|
- root hook
|
||||||
- secret shell
|
- secret shell
|
||||||
- ci
|
- ci
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,11 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
},
|
},
|
||||||
}:
|
}:
|
||||||
{
|
let
|
||||||
tests = {
|
inherit (pkgs) lib;
|
||||||
mastodon = import ./tests/mastodon.nix { inherit pkgs; };
|
in
|
||||||
pixelfed-garage = import ./tests/pixelfed-garage.nix { inherit pkgs; };
|
lib.mapAttrs (name: test: pkgs.testers.runNixOSTest (test // { inherit name; })) {
|
||||||
peertube = import ./tests/peertube.nix { inherit pkgs; };
|
mastodon = import ./tests/mastodon.nix { inherit pkgs; };
|
||||||
};
|
pixelfed-garage = import ./tests/pixelfed-garage.nix { inherit pkgs; };
|
||||||
|
peertube = import ./tests/peertube.nix { inherit pkgs; };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue