2ec0d36119
TIL `doCheck` is `naersk`'s mechanism for running unit tests during builds. Change-Id: Ife8eebacdf211ea52ecd50bb7bcdba326db64fbe Reviewed-on: https://cl.tvl.fyi/c/depot/+/5661 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: wpcarro <wpcarro@gmail.com>
24 lines
588 B
Nix
24 lines
588 B
Nix
{ depot, pkgs, ... }:
|
|
|
|
depot.third_party.naersk.buildPackage {
|
|
src = ./.;
|
|
doDoc = false;
|
|
doCheck = true;
|
|
|
|
override = x: {
|
|
# Use our custom bat syntax set, which is everything from upstream,
|
|
# plus additional languages we care about.
|
|
BAT_SYNTAXES = "${depot.third_party.bat_syntaxes}";
|
|
};
|
|
|
|
passthru = {
|
|
# Wrapper for cgit which can't be told to pass arguments to a filter
|
|
about-filter = pkgs.writeShellScriptBin "cheddar-about" ''
|
|
exec ${depot.tools.cheddar}/bin/cheddar --about-filter $@
|
|
'';
|
|
};
|
|
|
|
meta.ci.targets = [
|
|
"about-filter"
|
|
];
|
|
}
|