mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-23 16:32:23 +03:00
38 lines
665 B
Nix
38 lines
665 B
Nix
{ cargoNextest
|
|
, runCommand
|
|
}:
|
|
|
|
let
|
|
nextestSimple = cargoNextest {
|
|
src = ./simple;
|
|
pname = "nextest-simple";
|
|
cargoArtifacts = null;
|
|
};
|
|
|
|
nextestPartitionsCount = cargoNextest {
|
|
src = ./simple;
|
|
pname = "nextest-partitions-count";
|
|
partitions = 4;
|
|
partitionType = "count";
|
|
cargoArtifacts = null;
|
|
};
|
|
|
|
nextestPartitionsHash = cargoNextest {
|
|
src = ./simple;
|
|
pname = "nextest-partitions-hash";
|
|
partitions = 4;
|
|
partitionType = "hash";
|
|
cargoArtifacts = null;
|
|
};
|
|
in
|
|
runCommand "nextestTests"
|
|
{
|
|
buildInputs = [
|
|
nextestSimple
|
|
nextestPartitionsCount
|
|
nextestPartitionsHash
|
|
];
|
|
} ''
|
|
mkdir -p $out
|
|
''
|