always run checks when building in nix (doCheck true)
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
df72384c16
commit
1ecd027389
1 changed files with 2 additions and 14 deletions
|
@ -162,18 +162,12 @@ commonAttrs = {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# This is redundant with CI
|
doCheck = true;
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
cargoTestCommand = "cargo test --locked ";
|
|
||||||
cargoExtraArgs = "--no-default-features --locked "
|
cargoExtraArgs = "--no-default-features --locked "
|
||||||
+ lib.optionalString
|
+ lib.optionalString
|
||||||
(features'' != [])
|
(features'' != [])
|
||||||
"--features " + (builtins.concatStringsSep "," features'');
|
"--features " + (builtins.concatStringsSep "," features'');
|
||||||
cargoTestExtraArgs = "--no-default-features --locked "
|
|
||||||
+ lib.optionalString
|
|
||||||
(features'' != [])
|
|
||||||
"--features " + (builtins.concatStringsSep "," features'');
|
|
||||||
|
|
||||||
dontStrip = profile == "dev" || profile == "test";
|
dontStrip = profile == "dev" || profile == "test";
|
||||||
dontPatchELF = profile == "dev" || profile == "test";
|
dontPatchELF = profile == "dev" || profile == "test";
|
||||||
|
@ -209,18 +203,12 @@ craneLib.buildPackage ( commonAttrs // {
|
||||||
env = buildDepsOnlyEnv;
|
env = buildDepsOnlyEnv;
|
||||||
});
|
});
|
||||||
|
|
||||||
# This is redundant with CI
|
doCheck = true;
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
cargoTestCommand = "cargo test --locked ";
|
|
||||||
cargoExtraArgs = "--no-default-features --locked "
|
cargoExtraArgs = "--no-default-features --locked "
|
||||||
+ lib.optionalString
|
+ lib.optionalString
|
||||||
(features'' != [])
|
(features'' != [])
|
||||||
"--features " + (builtins.concatStringsSep "," features'');
|
"--features " + (builtins.concatStringsSep "," features'');
|
||||||
cargoTestExtraArgs = "--no-default-features --locked "
|
|
||||||
+ lib.optionalString
|
|
||||||
(features'' != [])
|
|
||||||
"--features " + (builtins.concatStringsSep "," features'');
|
|
||||||
|
|
||||||
env = buildPackageEnv;
|
env = buildPackageEnv;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue