Skip to content

Commit

Permalink
Fixed check command
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jun 4, 2024
1 parent 7dd78a6 commit 8f11155
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion nix/fixtures/module-repo/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 2 additions & 14 deletions nix/sweettest.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ let
cratesNames = builtins.map (toml: toml.package.name) nonWorkspaceCrates;
in cratesNames;
packageList = listCratesFromWorkspace src;
packages =
builtins.toString (builtins.map (c: " --package ${c}") packageList);

workspaceCargoArtifacts =
(craneLib.callPackage ./buildDepsOnlyWithArtifacts.nix { }) (commonArgs // {
doCheck = false;
cargoBuildCommand = "cargoWorkspace build --tests";
cargoTestCommand = "cargoWorkspace test";
cargoBuildCommand = "cargoWorkspace build --tests --locked";
cargoExtraArgs = "";
cargoCheckCommand = "";
preBuild = ''
cargoWorkspace() {
Expand All @@ -47,22 +45,12 @@ let
pname = "workspace-sweettest";
version = cargoToml.package.version;
});
# workspaceCargoArtifacts =
# (craneLib.callPackage ./buildDepsOnlyWithArtifacts.nix { }) (commonArgs // {
# doCheck = false;
# cargoExtraArgs = "--workspace --locked --all-targets";

# pname = "workspace-sweettest";
# version = cargoToml.package.version;
# });

in craneLib.cargoNextest (commonArgs // {
cargoArtifacts = workspaceCargoArtifacts;
pname = "${crate}-test";
version = cargoToml.package.version;

# cargoTestArgs = "-p ${crate} -j 1";
# cargoExtraArgs = "--locked";
cargoNextestExtraArgs = "-p ${crate} -j 1";

DNA_PATH = dna;
Expand Down

0 comments on commit 8f11155

Please sign in to comment.