blob: 268ff9d1d58866f598347a0e9c32548c8785beb3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
let
pkgs = import <nixpkgs> { };
rootSrc = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
utils = import ./nixos/utils.nix {
pkgs = pkgs;
rootSrc = rootSrc; # FIXME: remove the need for this
baseName = "dotfiles";
};
in with pkgs;
with pkgs.stdenv; rec {
test = utils.baseTask.overrideAttrs (baseAttrs: rec {
name = "${baseAttrs.name}-test";
buildInputs = [
utils.formatNix
# subtasks.shellcheck
# subtasks.fixme
# subtasks.uniqueFeeds
# subtasks.formatNix
];
buildPhase = ''
echo "Ran tests for:"
for d in ${builtins.toString buildInputs}; do
echo " $d"
done
echo "All tests passed!"
touch $out
'';
});
}
|