Skip to content

Commit

Permalink
Add rust tests to nix checks (#244)
Browse files Browse the repository at this point in the history
* Add rust tests to nix check

* Fix typo

* Fix typo

* Export ssl cert var in nix recipe
  • Loading branch information
DavidWHelsing committed May 14, 2024
1 parent f6f6fc6 commit 4ca7cac
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nix/buffrs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,16 @@ in {

# Audit licenses
buffrs-deny = craneLib.cargoDeny { inherit src; };

# Rust unit and integration tests
buffers-nextest = craneLib.cargoNextest (commonArgs // {
inherit cargoArtifacts;
partitions = 1;
partitionType = "count";
# Ignore tutorial test because it requires git and cargo to work
cargoNextestExtraArgs =
"--filter-expr 'all() - test(=cmd::tuto::fixture)'";
SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
});
};
}

0 comments on commit 4ca7cac

Please sign in to comment.